View Full Version : Problem with Ajax XML Ticker

09-25-2007, 10:46 PM
1) Script Title: Ajax XML Ticker (txt file source)

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex2/ajaxticker.htm

3) Describe problem:
Hi , I have loaded Ajax XML Ticker on my computer successfully but I can`t load it in my website (external server) .
I use Firebug . But Firebug says all things are OK .
Of course I don`t use absolute url . Also I don`t know correct absolute url for my website .
My website root is : http://www.mysite.com/web/ and Ajax XML Ticker related files are in this root :http://www.mysite.com/web/upload/Ajax/
Now , what`s correct absolute url for my website . Please describe according to :var xmlfile=="http://"+window.location.hostname+"/subdir/tickercontent.txt"

09-26-2007, 08:26 AM
Assuming your XML file (which should actually be a text file) is called content.txt and located in the directory http://www.mysite.com/web/upload/Ajax/, the variable for the script would look like:

var xmlfile=="http://"+window.location.hostname+"/web/upload/content.txt"

09-26-2007, 01:45 PM
Do you mean :

var xmlfile=="http://"+window.location.hostname+"/web/upload/Ajax/content.txt"

and what should I write instead of window.location.hostname .:rolleyes:

09-27-2007, 05:18 AM
Ah yes, what you posted above. You shouldn't need to change window.location.hostname, as that's the dynamic part where JavaScript will replace with your actual domain, by probing the location bar of the browser.