×

Discussion Board

Results 1 to 12 of 12
  1. #1
    Regular Contributor
    Join Date
    Apr 2003
    Location
    Akron Ohio USA
    Posts
    229

    Guarana, Nokia.use breaks on n95 n95

    it seems that Nokia.use (a method of dynamically loading javascript and css for guarana) is breaking .wgz on N96 and N95-8gb.

    I put a simple .wgz online that calls Nokia.use(). This .wgz breaks on N96 and N95-8gb but works correctly with 5800 Xpress, Aptana Studio plug-in and s60v3/v5 emulators.

    Can someone with access to s60v3 phone with latest firmware please check this .wgz and let us know if you have the same or different behavior?

    http://www.aviarts.com/downloads/testnokiauses60v3.wgz

  2. #2
    Super Contributor
    Join Date
    May 2008
    Location
    Helsinki, Finland
    Posts
    1,100

    Re: Guarana, Nokia.use breaks on n95 n95

    Hi

    Ok, thanks. Atleast I will check this and report back my findings.

    Best Regards,
    [FONT="Comic Sans MS"][COLOR="Blue"][/COLOR][I]Marko Lumivuori
    Technical Support
    +358 40 8019330
    [email]marko.lumivuori@nokia.com[/email][/I][/FONT]

  3. #3
    Regular Contributor
    Join Date
    Apr 2003
    Location
    Akron Ohio USA
    Posts
    229

    Re: Guarana, Nokia.use breaks on n95 n95

    thanks for taking the time to test. I just want to make sure this is not specific to my phones.

  4. #4
    Regular Contributor
    Join Date
    Apr 2003
    Location
    Akron Ohio USA
    Posts
    229

    Re: Guarana, Nokia.use breaks on n95 n95

    anyone here actually using Guarana with a s60v3 device?

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

    Re: Guarana, Nokia.use breaks on n95 n95

    Hello hp3,

    I've tested your sample on a Nokia N96, and the alert message is correctly shown. Just a hint that could hopefully help: have you already tried moving the init() function definition before the Nokia.use call?

    Pit

  6. #6
    Regular Contributor
    Join Date
    Apr 2003
    Location
    Akron Ohio USA
    Posts
    229

    Re: Guarana, Nokia.use breaks on n95 n95

    thanks for testing pit.

    what firmware are you testing the N96 with?

    the example .wgz has the init function definition listed after the Nokia.use() call, though the Nokia.use() call is listed within the window.onload. I will try listing the function before the window.onload declaration in case the javascript parser is having a problem with the order in which things are listed in the script file.

  7. #7
    Regular Contributor
    Join Date
    Apr 2003
    Location
    Akron Ohio USA
    Posts
    229

    Re: Guarana, Nokia.use breaks on n95 n95

    ok, I've updated to the most recent firmware for n96 which is 11.101.261.2, however the code below causes the .wgz to quit when it reaches the Nokia.use() line.

    Code:
    /*
    configure paths for guarana to dynamically load component javascript and style sheets
    */
    NOKIA_PATH_JAVASCRIPT = 'lib/';
    NOKIA_PATH_STYLE_ROOT = 'themes/nokia/base/';
    
    function init(){
    	alert('init');
    }
    
    /*
    wait until document is ready before executing any javascript - compatible with s60 v3
    */
    window.onload = function(){ 
    	alert('window load');
    	/*
    	dynamically load Guarana javascript and css for required components
    	wait until files loaded to initialize application
    	*/
    	Nokia.use('accordion',init);
    };
    this same code works correctly in the s60v3 emulator, in that I see both an alert for window.onload and the init function. On the phone I get the window.onload and then the application quits before displaying the init alert.

  8. #8
    Regular Contributor
    Join Date
    Apr 2003
    Location
    Akron Ohio USA
    Posts
    229

    Re: Guarana, Nokia.use breaks on n95 n95

    I also tried:

    Nokia.use('button',function(){alert('nokia.use')});

    and

    Nokia.use('button');

    both of these cause the application to quit.

    However, if I use Nokia.use() with no arguments then the application does not quit.

    I am using the "built" version of Guarana which is minified and without line breaks. I've also tested with the non built version but get the same results.

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

    Re: Guarana, Nokia.use breaks on n95 n95

    Hi hp3,

    I've tested the latest changes you've posted in your last post, and they work as well, so I see both alert messages popping up.

    I'm testing on N96 with FW v20.050

    Pit

  10. #10
    Regular Contributor
    Join Date
    Apr 2003
    Location
    Akron Ohio USA
    Posts
    229

    Re: Guarana, Nokia.use breaks on n95 n95

    thanks for taking the time to help.

    are you using the latest N96 firmware? I just downloaded the latest firmware for N96 and it is at 11.101 from 2008. I used the device manager on the N96 phone to update the firmware. Your firmware number is v20.050 which is much higher. How can I get access to this firmware?, are you testing on Nokia's remote N96?

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

    Re: Guarana, Nokia.use breaks on n95 n95

    I updated with standard NSU some months ago, so It should be not a recent firmware: strange that It's not yet available in all zones. Is your firmware operator-branded?

    Pit

  12. #12
    Regular Contributor
    Join Date
    Apr 2003
    Location
    Akron Ohio USA
    Posts
    229

    Re: Guarana, Nokia.use breaks on n95 n95

    This is an unlocked phone. I used wifi to download the OTA update.

    I also used NSU and it upgraded to 12.x firmware but none of these firmwares are near v20 which is probably required to handle the issues.

Similar Threads

  1. N95 Accelerometer & JSR-256
    By AnthonyAndrews in forum Mobile Java General
    Replies: 9
    Last Post: 2009-04-21, 22:12
  2. A question about ROM version of N95
    By jojo.jin in forum Series 40 & S60 Platform Feedback Archive
    Replies: 1
    Last Post: 2008-07-24, 06:49
  3. Replies: 84
    Last Post: 2008-03-04, 23:25
  4. Classic N95 vs US ver. N95
    By qwerty0824 in forum General Development Questions
    Replies: 5
    Last Post: 2007-09-13, 18:09
  5. N95 Some Questions & Suggestions
    By subzero_brighton in forum General Development Questions
    Replies: 0
    Last Post: 2007-06-22, 15: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
  •  
×