Speeding Up Loading Of File From Another Site

Jan 27, 2011

I have a JS file on site A which needs a few parameters from a short text file on site B. Since crossing domain boundaries in JS is problematic, the way I do it is that the JS actually opens an intermediate PHP file on site A which redirects to the destination page in site B. Here's how it goes: The call is made through:

[Code]...

View 1 Replies


ADVERTISEMENT

Speedup Loading Of File From Another Site?

Jan 27, 2011

I have a JS file on site A which needs a few parameters from a short text file on site B. Since crossing domain boundaries in JS is problematic, the way I do it is that the JS actually opens an intermediate PHP file on site A which redirects to the destination page in site B. Here's how it goes:

The call is made through code...

The problem is that this takes a long time. I would really like to speed this up. For example - I thought of using a direct IP address, so that there won't be any need a DNS server (using
Code...

) but this would expose me to hackers as it would make my Hostgator username visible. According to HG support the above format is the only way to access my subsite via direct IP.

Any ideas on how to speed this up, either by bypassing DNS (but without exposing username) or by offering another way of reading data across sites?

View 5 Replies View Related

Speed Up Loading Of File From Other Site?

Jan 27, 2011

I have a JS file on site A which reads a few parameters from a short text file on site B. The call is made through code...

Any ideas on how to speed this up, either by bypassing DNS (but without exposing username) or by offering another way of reading data across sites?

View 2 Replies View Related

Txt File - Write Information To A Log File That's On An External Site

Feb 26, 2010

Is it possible to use javascript to write information to a log file that's on an external site? What I want to do is have a person put their name and birthday into a form on my site, and then output that information to a partnering site's log file which would be something like www.whatever.com/whatever.file Is this possible? what file type can javascript write to? I put .file because I am unsure.

View 6 Replies View Related

Slow Loading Site

Apr 1, 2006

I put a javascript for a preload in it and it hasnt helped the front page. Right now the header is swish and we took that out and it still took over 2 minutes to download on DSL. I do have the JS anthology book but the script in there didn't work for us. Come to think of it I have almost all of the sitepoint books. Does anyone have any suggestions.

View 3 Replies View Related

JQuery :: Deactive Site While Loading?

Jul 11, 2009

I have following problem: If you open a dialog in jquery, the website will be "deacitve" and the dialog would show. I want, that the website will be "deactive", but there shouldn't show any dialogs.

View 1 Replies View Related

Site Loading Time And Compression

Feb 27, 2009

Should I always YUI or GZIP text files in my site or only when they exceed a certain size? Since the decompression takes some time as well I thought that if the files are small they should only be mified...is that correct?

View 2 Replies View Related

Improve The Web Site Loading Performance?

Apr 10, 2009

How to improve the web site loading performance. My current site takes average time 18 sec. to load in first time. and 2nd time refresh it takes 12 sec. through YSlow I am observing the request time it more. how to achieve the better performance. My html code is very much clean and w3c validated.

View 1 Replies View Related

Prevent Loading Of A Site Via Script?

Apr 20, 2009

I would to know please if is it possible to block the loading of particular site by/via javascript. Having a web page with a flash content that contains a call to a particular site, I don't want to receive information from that site. does exists a javascript code that block that call to that site?

View 4 Replies View Related

Loading External Javascript When Site Is Down

Mar 16, 2004

I am working on a client's site and he has some external javascript code that his affiliates can put on their websites to fetch some data. However, when my client's site goes down, the affiliates' sites cease to load thus taking their sites down with it.

Is there any way I can have the javascript check to see if the website is up before loading, and if it is, run this: Code:

View 8 Replies View Related

JQuery :: GetScript - Site Does Not Finish Loading?

Jan 12, 2010

As i understand the getScript function should be asyncronous, but when i use it the website won't finish loading in firefox.

My code:

Calls itself so the counter this script is used for is updated - all works well, just the page keeps loading...so whats the problem here? why does the website not finish loading?

View 2 Replies View Related

JQuery :: Firefox - 3.5.2 - Site Is Render Twice During The Loading

Aug 18, 2009

I don't know if it's a bug in jquery but some of you can have encounter the same problem with their

With the last version of Firefox ( 3.5.2 ), the site is render twice during the loading. 

We can't isolate which element can produce this problem and it happens only with the firefox 3.5 ( not in 3.7pre or 3.0.12, not in ie, etc...

We load some js from external source ( facebook, googlesyndication, etc...

View 1 Replies View Related

Jquery :: Mootools Conflicts - Not Loading On Site

Jan 28, 2010

I am trying to use both jQuery and Mootools in one site I am building. I have researched the web including [URL] with no luck. I have tried loading jQuery after Motools with no luck. My research indicates mootools needs to go first. I have also tried below but that doesn't seems to work?
(function($){
// code with the jQuery $ can safely go in here
})(jQuery);

HTML Code:
[HIGHLIGHT="HTML4Strict"][highlight="HTML4Strict"]
<title>test</title>
<link rel="stylesheet" type="text/css" href="index.css" />
<script type="text/javascript" src="js/jquery-latest.js"></script><!-- jQuery -->
<script type="text/javascript" src="js/mootools.js"></script>
<script type="text/javascript" src="js/mootools-more.js"></script>
<script type="text/javascript">
window.addEvent('domready', function(){
//MooTools smoothScroll
var smoothScroll = new SmoothScroll({duration: 2800});
// MooTools .....

View 2 Replies View Related

Ajax :: Site Navigation Module Not Loading Correctly

Jul 7, 2009

I had posted this issue previously regarding my Ajax site navigation module not loading correctly. It would load on certain parts of the site and not others. After some research I have discovered that I need to redirect from "www.mydomain.com" and make a call to "mydomain.com" instead. I thought a 301 .htaccess redirect would work but according to the site that sold me the template the script in my configure.php file must be changed. This is what configure.php looks like now.

<?php
define('HTTP_SERVER', '[URL]');
define('HTTPS_SERVER', '[URL]');
define('ENABLE_SSL', 'TRUE');
define('HTTP_COOKIE_DOMAIN', 'mydomain.com')
define('HTTPS_COOKIE_DOMAIN', 'mydomain.sslpowered.com/mydomain.com/');
define('HTTP_COOKIE_PATH', '/mydomain.com/mysite/catalog/'); .....

I am wondering what has to be changed in the script so it will make the call the the correct domain so the ajax script will load on all parts of the site.

View 1 Replies View Related

Loading File From Disk - Select A File From A List And Load It Into A Webpage

Jan 1, 2011

I am looking for a way to select a file from a list and load it into a webpage. The page and the files are stored on a sd-card for off-line usage, I know that listing files remote dynamicly needs a scripting engine but since the sd-card is on the client side that is not possible, but I can make a list of those files when creating them.

It is intended for a datalogger on a tractor-puller, I create csv files with a bash script on the logger and for off-line viewing I use a javascript charting engine which loads the csv file, the files have the creation date as filename and I can make (and maintain) a list of files when creating them. The plan is that the we can select another data set (run) from within the browser and show that one. I have setup an example at [URL]

View 4 Replies View Related

Site Loading Delay (JS Accordion Effect Doesn't Load Right Away)

Jun 10, 2011

Ok i just created my portfolio site using a simple accordion effect i got from. [URL] Im very new to javascript and coding in general, so im sure my code is far from pretty. My question, is their a way to fix the delay on the way the accordion loads. if you go to my site [URL] you'll see that initially all the sections are visible and then they collapse after a few moments. is there anyway to make it so they are collapsed immediately.

[Code]....

View 2 Replies View Related

Auto Browser Re-sized On The Site Loading / Refreshing - Safari?

Jun 29, 2010

Not what i would like but the client wants the browser re-sized on the site loading/refreshing... Been using the following and it works fine.... apart from in Safari. how i can get it working in Safari, or no chance?

Code JavaScript:
$(document).ready(function() {
window.resizeTo(1152, 866);
});

View 6 Replies View Related

Flash File Hosted On My Site To Appear On Another?

Feb 18, 2010

I have a flash banner commercial that has to appear on a news site. it has live video and sound in it and im going over the size limit on that site (100kb).

They told me that i could do it like this company and host the file on a different site but make it appear on the news site with a script. Here�s how it looks like.code...

View 5 Replies View Related

Add AV Scan To File Upload Site?

Feb 15, 2012

i am building an file upload site and want to be able to scan the files on upload for viruses etc.. How would i be able to do this?

View 1 Replies View Related

Using Javascript To Determine If File Exists On Host Site

Jul 20, 2005

I'm new to javascript and PHP and I am wondering if there is a method or function to capture a 404 error in the event a particular html file cannot be found. I want to redirect that error to another page or design the code to send me an email telling me what page was selected and not found. In other languages I can trap such an error and respond to it.

View 3 Replies View Related

Place Text From A Form And Symbols From A Gif. File To A Web Site?

May 25, 2009

Is it possible using some kind of Script to get text/pictures/symbols from typed text and from a gif. file (already on the web site) to show on another place in the web site by clicking on a button.My coding is like this:

<!--
<h4><strong>First line</strong></h4>
<form action="MAILTO:someone@someone.com" method="post" enctype="text/plain">[code]....

By pressing "Show" I want the text typed in the form to show on the same site, and then the user should have the opportunity to also place a symbol (the gif. file) the same way as the text and to be viewed on the same site too.

View 2 Replies View Related

Change Image On Webpage By Checking Text File On Site?

May 18, 2010

I'm try to set up a webpge that will play a live flash video on the left-hand side(got that part working) and display one slide of a presentation(jpg) to the right of the video. I would like to be able to control when the slide image changes by having some js check a text file on my server. The text file could contain something as simple as "Slide1.jpg". I will manipulate the text file with some code I've already written. Is there some simple js code I can put in my page that will cause it to check the text file every 5 seconds, and if the content of the file has changed, to refresh the image on the page with the new image? I'm try to get away from the "clicking" sound that is caused by doing a simple refresh of an Iframe.

View 3 Replies View Related

Fetch Data From 2 Cols Of An Excel File And Upload To Ftp Site?

Dec 3, 2011

I am trying for a javascript code that would ask for the excel file location when run, fetch data from two columns till eof in an excel file (MS Excel 2010), append it to an existing text file and upload the plain text file to an ftp location.

The ftp username, password and location needs to be hard coded in the script.

View 3 Replies View Related

JQuery :: Make Iframe Page That Loading A Page From Other Site?

Oct 11, 2009

i want to make a iframe page that loading a page from other site. I have try "jQuery iFrame Sizing" to set auto height in iframe... but it is failed.

This is my code :
-------------
on Head
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/iframe.js"></script>
on Body

[Code]....

View 1 Replies View Related

Set A Cookie For This File Location, But When Leave The Site And Come Back, It Doesn't Work?

Feb 9, 2009

I'm trying to set a cookie for this file location, but when I leave the site and come back, it doesn't work. Why?

<html>
<head>
<title>Return file directory</title>

[code]....

View 1 Replies View Related

Loading Xml File

Dec 5, 2007

I use the following to load an xml file...

xmlDoc=document.implementation.createDocument("","",null);
xmlDoc.load("file.xml");
xmlDoc.onload=getmessage;

How do I check if it had loaded correctly? I read something about a ready state you can call?

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved