Results 1 to 4 of 4

Thread: Ajax XML Ticker (txt file source) and xml files

  1. #1
    Join Date
    Aug 2006
    Posts
    116
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Ajax XML Ticker (txt file source) and xml files

    1) Script Title: Ajax XML Ticker (txt file source)

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...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?

    Code:
    <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")
    </script>

  2. #2
    Join Date
    Aug 2004
    Posts
    10,140
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    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 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.
    DD Admin

  3. #3
    Join Date
    Aug 2006
    Posts
    116
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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?

  4. #4
    Join Date
    Aug 2004
    Posts
    10,140
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    For which script? Ajax Ticker does support multiple instances on the page by default.
    DD Admin

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •