×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    May 2007
    Location
    USA
    Posts
    120

    Exclamation Can FNReader example be run on 5800 XM?

    The FNReader WRT example seems interesting. The readme says quite clearly that the online/offline API works only on the N97, but also states that it can be run on "in other mobile devices supporting WRT widgets." On the 5800, when I launch it, I get this error:

    Script alert:
    widget was not inited correctly:
    TypeError: value undefined (result of expression widget.setNavigationType) is not object.


    Then I click OK, and it takes me to blank screen with just Options/Exit as my choices, and I can do nothing but exit. Anyone suggestions on how get this to work? I'm not up to speed on WRT yet...just testing the waters.
    Last edited by hgohel; 2009-12-28 at 16:23. Reason: Correct typo in script alert message
    --Himanshu
    Nokia N8-00 (Symbian Belle, NAM RM-596)
    Nokia 5800 XpressMusic (S60 5th Ed., NAM RM-428, v51.2.007)
    S/w: ADT v1.4 + S60 5.0 SDK on Win7 x64

  2. #2
    Nokia Developer Expert
    Join Date
    Jun 2008
    Location
    Tampere
    Posts
    833

    Re: Can FNReader example be run on 5800 XM?

    Thank you for pointing this out.

    You will need to replace one line in the init() -function.

    Replace:
    widget.setNavigationType('tabbed'); //supported only by devices running 7.1 browser

    With:
    widget.setNavigationEnabled(false); //old way to do it

    After this change it will work on 5800 as well.

    Ps.
    For those that don't have a clue what we are talking about:
    FNReader Widget Example

    Br,
    Ilkka - Forum Nokia
    Last edited by isalento; 2009-12-29 at 07:38. Reason: link added

  3. #3
    Registered User
    Join Date
    May 2007
    Location
    USA
    Posts
    120

    Re: Can FNReader example be run on 5800 XM?

    Hello Ilkka,

    The change you mentioned did the trick! The example now runs on the 5800. If anyone else wants to make the change, the file to edit is FNReaderWidget\script\RSSReader.js

    There is what appears to be a bug with the sample feeds or with the reader example - the dates for entries is in the future - for "Qt for Maemo" entry, the date is something like January 30, 2010...I know some parts of the world are ahead of others, but this seems unlikely

    Regards,
    --Himanshu
    Nokia N8-00 (Symbian Belle, NAM RM-596)
    Nokia 5800 XpressMusic (S60 5th Ed., NAM RM-428, v51.2.007)
    S/w: ADT v1.4 + S60 5.0 SDK on Win7 x64

  4. #4
    Registered User
    Join Date
    May 2007
    Location
    USA
    Posts
    120

    Smile Re: Can FNReader example be run on 5800 XM?

    Quote Originally Posted by hgohel View Post
    There is what appears to be a bug with the sample feeds or with the reader example - the dates for entries is in the future - for "Qt for Maemo" entry, the date is something like January 30, 2010...I know some parts of the world are ahead of others, but this seems unlikely
    OK, I found the bug that causes this - the clue was that the articles were one month off from the actual publish date on the web site, which led me to search for the date handling function and look for an off-by-one error.

    In FeedUpdateBroker.js, see FeedUpdateBroker.prototype.getDateOfNode which returns the date as a Date object. There's a call to setFullYear() which is sent the arguments for year, month and date as integers. For some odd reason, the way the function is defined is that the month should be a number from 0-11 rather than what makes sense to everyone that the month should be 1-12.

    I changed the arguments to subtract one from the month parameter, and now FNReader is reporting the correct date for the articles.
    --Himanshu
    Nokia N8-00 (Symbian Belle, NAM RM-596)
    Nokia 5800 XpressMusic (S60 5th Ed., NAM RM-428, v51.2.007)
    S/w: ADT v1.4 + S60 5.0 SDK on Win7 x64

Similar Threads

  1. [moved] Calendar DB edit? (Nokia 5800 XM)
    By Elenhil in forum General Development Questions
    Replies: 4
    Last Post: 2010-10-25, 09:57
  2. Nokia 5800 ExpressMusic unable to send bytes via OutputStream?
    By xandel in forum Wired and Wireless interfaces (Closed)
    Replies: 0
    Last Post: 2009-11-27, 12:14
  3. Java runtime 3.0 issue on 5800 XM
    By Seikeau in forum Mobile Java General
    Replies: 3
    Last Post: 2009-11-01, 12:50
  4. why does Noia 5800 xm lagg so much?
    By ltjustas1 in forum Series 40 & S60 Platform Feedback Archive
    Replies: 2
    Last Post: 2009-09-20, 15:51
  5. 5800 XM + Flash Lite 3.1 + Sensor API = wild data ??
    By sixtuslab in forum [Archived] Flash Lite on Nokia Devices
    Replies: 4
    Last Post: 2009-09-19, 21:37

Posting Permissions

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