Having some trouble with some script, I think java

Discussion in 'JavaScript' started by jg123, May 3, 2007.

  1. #1
    I am having trouble with one of my rss feeds showing on WjNj.com home page, I can't seem to find the described error. Any help would be appreciated, green rep and a free link in my PR5 directory to say thanks to whomever can help.

    thanks
     
    jg123, May 3, 2007 IP
  2. ajsa52

    ajsa52 Well-Known Member

    Messages:
    3,426
    Likes Received:
    125
    Best Answers:
    0
    Trophy Points:
    160
    #2
    Well, the problem is on this feed: http://seefunnyvideos.com/?feed=rss
    It's NOT well-formed. The problem is on the item with this "description":
    "Nikki Payne - Canada's gift to the U.S! Nikki Payne is a Canadian comedian and actress, well known for her lisp. She has won three Canadian Comedy Awards for Best Stand-up Newcomer and Best Female Stand-up (2003 & 2005). She is the first stand-up in either the male or female ..."

    You can't use '&' on an .xml file, you must use '&' instead.

    However your feed http://seefunnyvideos.com/?feed=rss2 is well formed

    Hope this help.
     
    ajsa52, May 3, 2007 IP
  3. jg123

    jg123 Notable Member

    Messages:
    6,006
    Likes Received:
    387
    Best Answers:
    0
    Trophy Points:
    295
    #3
    Thanks for trying, but I don't really know how or where to fix that. The only place I can find that lists the details for the RSS feed is here http://www.wjnj.com/js/dragable-boxes.js but when I delete the entire line or change it around it does not seem to effect anything on the home page. I can't seem to find where else the feeds are listed :-(

    You seem to have a lot of posts and some rep so if you are willing to take a quick look at my cpanel let me know.

    thanks
     
    jg123, May 3, 2007 IP
  4. ajsa52

    ajsa52 Well-Known Member

    Messages:
    3,426
    Likes Received:
    125
    Best Answers:
    0
    Trophy Points:
    160
    #4
    The problem is on the source data on feed http://seefunnyvideos.com/?feed=rss (rss version="0.92"), but no on feed http://seefunnyvideos.com/?feed=rss2 (rss version="2.0")

    I don't use CPanel, but you need to change only the url of your feed.

    Another posibility (worse) could be changing the javascript createFeed(formObj) function this way:

    
    var url = formObj.rssUrl.value;
    
    Code (markup):
    change to

    
    var url = formObj.rssUrl.value;
    if ( select.substring(formObj.rssUrl.value.length - 9)  == "?feed=rss" )
      url += "2";
    
    Code (markup):
    or to

    
    var url = formObj.rssUrl.value;
    if ( url == "http://seefunnyvideos.com/?feed=rss" )
      url = "http://seefunnyvideos.com/?feed=rss2";
    
    Code (markup):
     
    ajsa52, May 4, 2007 IP
  5. jg123

    jg123 Notable Member

    Messages:
    6,006
    Likes Received:
    387
    Best Answers:
    0
    Trophy Points:
    295
    #5
    I guess the problem is that I don't know where to find the right file to make the changes.
     
    jg123, May 4, 2007 IP