PDA

View Full Version : Ajax XML Ticker (txt file source) no source is showing



hups
07-19-2008, 11:10 PM
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/dynamicindex2/ajaxticker.htm

please helb me


my test site is here

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


http://www.hupsis-e107.de/scroll.jpg

thetestingsite
07-19-2008, 11:21 PM
First:
Your page is in violation of Dynamic Drive's usage terms (http://www.dynamicdrive.com/notice.htm), 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:



<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:



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

hups
07-20-2008, 12:27 AM
hello thanks for help

i have make this

in my php


<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


<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

thetestingsite
07-20-2008, 12:34 AM
in my php


<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:



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

hups
07-20-2008, 10:43 AM
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

hups
07-23-2008, 07:09 PM
no ideas ?