Results 1 to 2 of 2

Thread: Pausing RSS Scroller, title not displayed

  1. #1
    Join Date
    Mar 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Pausing RSS Scroller, title not displayed

    1) Script Title: Pausing RSS Scroller

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...pausescroller/

    3) Describe problem: I download it and when I modified the page with the site of the RSS: http://forums.tvxqperu.com/index.php?act=rssout&id=2 for both examples, the day and time appears in the second one but not the title x_x
    http://piratexbelle.suki-desu.net/demo.htm

    Please help me!

    Thank you! ^^

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

    Default

    The titles of your RSS entries seem to contain the <[CDATA ]]> tags that is tripping up the output. Looking at your generated output:

    http://piratexbelle.suki-desu.net/la...d=dynamicdrive

    Notice how the title property contains for example:

    Code:
    rsscontentdata.[0]={link:"http%3A%2F%2Fforums.tvxqperu.com%2Findex.php%3Fshowtopic%3D6638", title:"%3C%21%5BCDATA%5B%5BAudio%5D%20090320%20Jaejoong%20%26%20Yoonho%20-%20FM%20Aichi%20Menicon%20Music%20Triangle%5D%5D%3E", description:"", date:"Mar%2020%2C%202009%205%3A16%3A45%20PM"}
    If you decode that, ie:

    Code:
    alert(decodeURI(rsscontentdata[0].title))
    You get something like:

    Code:
    <![CDATA[[Vid] 090320 TNC MomochihamaDX Store Preview]]>
    Which appears blank when shown inside the DIV. You should either modify your RSS feed so the titles are just plain text, or if you're familiar with PHP, edit the PHP script to account for this.
    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
  •