View Full Version : Ajax XML Ticker (txt file source) and xml files

02-18-2010, 02:47 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:

Just as a test I installed the code on my page and changed tickercontent.txt to datafeed_12565.xml I assumed this script could handle an xml file, was I wrong, as the contents of the file are not displaying.

Is there a script that can use a xml file held on the same server?

<script type="text/javascript">

var xmlfile="datafeed_12565.xml" //path to ticker txt file on your server.

//ajax_ticker(xmlfile, divId, divClass, delay, optionalfadeornot)
new ajax_ticker(xmlfile, "ajaxticker1", "someclass", [3500], "fade")

02-19-2010, 09:08 AM
The script expects a plain text file and in the format described on the script page (with each message wrapped in its own DIV tag). There is XML ticker (http://www.dynamicdrive.com/dynamicindex2/xmlticker2.htm) that accepts a xml file as its data source, though it's not quite as feature rich at the moment, and regardless of which ticker you choose, the structure of your data file needs to conform to that described on each script page.

02-19-2010, 12:55 PM
Thanks for that DD Admin, ive got it working now.

How difficult would it be to have multiple instances of this on a single page?

02-19-2010, 08:50 PM
For which script? Ajax Ticker does support multiple instances on the page by default.