×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jan 2009
    Posts
    2

    Unhappy Please Help - Problem with RSS Reader for Nokia Events Pages

    Hi Everyone, i made an RSS Reader with my Aptana Studios and the plugins for Nokia WRT, the RSS take the inforamtion from the RSS Fedd for the Nokia Upcoming Events --> http://www.forum.nokia.com/feeds.htm...coming+Events; the problem is that i want to show in my widgets the SUMMARY tag content "<summary type="text">", but the corresponding code in the Javascript file is not taken it.

    This is the Javascript Code taht i use:
    **************************************************************************************************
    // we got the feed XML so now we'll parse it
    var itemElements = xmlDoc.getElementsByTagName("entry");
    for (var i = 0; i < itemElements.length; i++) {
    // iterate through child nodes of this item and gather
    // all the data we need for a feed item
    var title = null;
    var date = null;
    var description = null;
    var url = null;

    node = itemElements[i].firstChild;
    while (node != null) {
    if (node.nodeType == Node.ELEMENT_NODE) {
    if (node.nodeName == "title") {
    // item title
    title = this.getTextOfNode(node);
    } else if (node.nodeName == "pubDate" || node.nodeName == "dc:date") {
    // item publishing date
    date = this.getTextOfNode(node);
    } else if (node.nodeName == "summary ") {
    // item description
    description = this.getTextOfNode(node);
    } else if (node.nodeType == "text") {
    // item description
    description = this.getTextOfNode(node);
    } else if (node.nodeName == "id") {
    // link URL
    url = this.getTextOfNode(node);
    }
    }
    node = node.nextSibling;
    }

    // create the item and add to the items array
    items.push({ title: title, date: date, description: description, url: url });
    **************************************************************************************************

    I think is because this summary tag appear in this feed with the attribute "type=text" and the others tags appear without any attribute and those one works correctly.

    I hope that somebody help me on this

  2. #2
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,406

    Re: Please Help - Problem with RSS Reader for Nokia Events Pages

    Hi,

    it seems the problem is an extra space in your "summary " string in this line:
    Code:
    } else if (node.nodeName == "summary ") {
    Hope it helps,
    Pit

  3. #3
    Registered User
    Join Date
    Jan 2009
    Posts
    2

    Re: Please Help - Problem with RSS Reader for Nokia Events Pages

    It was fixed, that was the error!! Thanks you a lot!!

Similar Threads

  1. Problem MMC+USB Connection
    By Fede81 in forum Symbian
    Replies: 1
    Last Post: 2007-06-14, 06:13
  2. Problem MMC+USB Connection
    By Fede81 in forum General Development Questions
    Replies: 3
    Last Post: 2006-07-19, 15:21
  3. A very strange problem about rss file!
    By nfx in forum Symbian User Interface
    Replies: 2
    Last Post: 2003-02-04, 00:21
  4. Problem of multiple pages
    By chheang in forum Symbian
    Replies: 1
    Last Post: 2002-09-04, 07:25

Posting Permissions

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