Results 1 to 6 of 6

Thread: Ajax XML Ticker (txt file source) no source is showing

  1. #1
    Join Date
    Jul 2008
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Ajax XML Ticker (txt file source) no source is showing

    Hello,

    i have this scroller (Ajax XML Ticker (txt file source) installed on my local host ander xampp all is ok but on my webspace the scroller is no schowing the text
    scroller is here http://www.dynamicdrive.com/dynamici...ajaxticker.htm

    please helb me


    my test site is here

    http://www.hupsis-e107.de/bwd/news.php


    Last edited by hups; 07-20-2008 at 02:16 PM.

  2. #2
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    First:
    Your page is in violation of Dynamic Drive's usage terms, which, among other things, states that the credit notice inside script must stay intact. Please reinstate the notice first.


    Second:
    On this line, the language tag has been deprecated. Use type="text/javascript" like so:

    Code:
    <script src="e107_themes/oybhup_wow/marquee_txt/js/ajaxticker.js" type="text/javascript">
    
    /***********************************************
    * Ajax Ticker script (txt file source)-  Dynamic Drive (www.dynamicdrive.com)
    * This notice MUST stay intact for legal use
    * Visit http://www.dynamicdrive.com/ for this script and 100s more.
    ***********************************************/
    
    </script>
    Third: I see no call to the actual function in your source. You need to invoke the script like so:

    Code:
    <script type="text/javascript">
    
    var xmlfile="tickercontent.txt" //path to ticker txt file on your server.
    
    //ajax_ticker(xmlfile, divId, divClass, delay, optionalfadeornot)
    new ajax_ticker(xmlfile, "ajaxticker1", "someclass", 3500, "fade")
    </script>
    wherever you want the ticker to display.

    Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  3. #3
    Join Date
    Jul 2008
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    hello thanks for help

    i have make this

    in my php

    Code:
    <script type=\"text/javascript\">
    
    var xmlfile=".THEME."marquee_txt/tickercontent.txt\" //path to ticker txt file on your server.
    
    //ajax_ticker(xmlfile, divId, divClass, delay, optionalfadeornot)
    new ajax_ticker(xmlfile, \"ajaxticker1\", \"someclass\", 3500, \"fade\")
    </script>

    an in the head this

    Code:
    <script src='e107_themes/oybhup_wow/marquee_txt/js/ajaxticker.js' type=\"text/javascript\">
    /***********************************************
    * Ajax Ticker script (txt file source)-  Dynamic Drive (www.dynamicdrive.com)
    * This notice MUST stay intact for legal use
    * Visit http://www.dynamicdrive.com/ for this script and 100s more.
    ***********************************************/
    
    </script>

    but nothing is showing

  4. #4
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Quote Originally Posted by hups View Post
    in my php

    Code:
    <script type=\"text/javascript\">
    
    var xmlfile=".THEME."marquee_txt/tickercontent.txt\" //path to ticker txt file on your server.
    
    //ajax_ticker(xmlfile, divId, divClass, delay, optionalfadeornot)
    new ajax_ticker(xmlfile, \"ajaxticker1\", \"someclass\", 3500, \"fade\")
    </script>
    The php is outputting the above on a single line like so:

    Code:
    <script type="text/javascript">var xmlfile="e107_themes/oybhup_wow/marquee_txt/tickercontent.txt" //path to ticker txt file on your server.//ajax_ticker(xmlfile, divId, divClass, delay, optionalfadeornot)new ajax_ticker(xmlfile, "ajaxticker1", "someclass", 3500, "fade")</script>
    which is making the script being commented out (hence why it is not working). Not sure how your php code is, but you need to make sure that it will output everything on different lines instead of just one single line.

    Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  5. #5
    Join Date
    Jul 2008
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    hello thanks for your help but after i change it the scroller is not showing

    i dont no why on my loacall host under Xaamp thats all no problem the scroller is showing but under the web is not going

    sorry for bad english .

    mfg Michel

  6. #6
    Join Date
    Jul 2008
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    no ideas ?

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
  •