Hi,
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:
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 (usingCode:var theFile = getFile("http://www.mySiteB.com/theTextFile.txt"); var lines = theFile.split("\n"); var var1 = lines[1]; var var2 = lines[2]; var var3 = lines[3];) 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.Code:var theFile = getFile("http://123.45.67.89/~myUsername/mySiteB/theTextFile.txt");
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?
This is really important for me!
THANK YOU!!!




Bookmarks