×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 20
  1. #1
    Nokia Developer Moderator
    Join Date
    Jun 2007
    Posts
    219

    Private Beta: S60 WRT Plug-in for Aptana Studio

    Welcome to the Beta ‘S60 WRT Plug-in for Aptana IDE’ discussion board. This beta is open for Forum Nokia PRO, Launchpad and Champions who are invited to try the tool and provide their feedback at this discussion board. Enjoy!


    Ung-Ping Tian
    Web technology Marketing Manager, Forum Nokia
    Last edited by uptian; 2008-11-03 at 16:19.

  2. #2
    Registered User
    Join Date
    Aug 2008
    Posts
    13

    Re: Beta: S60 WRT Plug-in for Aptana

    I wonder how well this plug-in work? I couldn't popup an alert.
    The "application/x-systeminfo-widget" plug-in is WRT specific. I guess, it doesn't work either. Any way to fix this?

    Thanks,
    --Steven

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

    Re: Beta: S60 WRT Plug-in for Aptana

    Hi Steven,

    can you please provide more information about your problems with the Aptana plugin?

    Pit

  4. #4
    Super Contributor
    Join Date
    Dec 2005
    Location
    England,UK
    Posts
    1,600

    Re: Beta: S60 WRT Plug-in for Aptana

    Problems

    I decided to take a working example and try and run this.

    1) The documentation is for the Apple Mac, the Windows user is told to seek advice in somewhere else. I had to Google.
    Uses Safari not FireFox

    2) I had to use the WRT Blog to set up most of this.

    3) I had to find by google the Aptana studio download and configure.

    4) I have now PARTLY configured the Aptana connection to Firefox, this is STILL not working.

    5) The example used in the WRT BLOG works, so whats wrong.

    The answers appear to be the need to enable Nokia WRT
    along with Firefox and IE7


    This appears to have nothing to do with the s60 extension!


    Thanks
    Jim
    Last edited by jimgilmour1; 2008-11-10 at 19:06. Reason: Must enable Nokia WRT brower!

  5. #5
    Registered User
    Join Date
    Aug 2008
    Posts
    13

    Re: Beta: S60 WRT Plug-in for Aptana

    Hi Pit,

    I start by just create a default demo project. With the following in the basic.js file:

    function init()
    {
    // Add your code stpes here
    menu.setRightSoftkeyLabel("Demo", hello);
    }

    function hello(){
    alert("Hello!");
    }


    With the following in the index.html:

    <body onLoad="javascript:init();">
    Demo
    </body>

    What it should do is setup the right-softkey and pop up an alert when the right-softkey is pressed. It ran fine on the device. However, it doesn't work on the S60 plug-in on the aptana.

    Any thought?

    --Steven

  6. #6
    Regular Contributor
    Join Date
    Jun 2004
    Posts
    55

    Re: Beta: S60 WRT Plug-in for Aptana

    Steven,

    Looks like this is a bug in the WRT API emulation. I'll log the bug and pass it to our team. Thanks for reporting this.

    Dan Podwall
    Nokia

  7. #7
    Super Contributor
    Join Date
    Dec 2005
    Location
    England,UK
    Posts
    1,600

    Re: Beta: S60 WRT Plug-in for Aptana

    Hello World Problem
    -------------------
    Create Project "New Web runtime Widget S60"
    called this "BasicWidget"
    Build Project
    Debug as starting file
    file:///C:\Users\Jim\Documents\AptanaStudio\BasicWidget\wrt_preview_main.html

    on console error message

    PHP Code:
    TypeErrorchildToParent_Reference.$ is not a function
        
    at cancel() (BasicWidget/preview/script/lib/menu.js:236)
        
    at onfocus() (BasicWidget/preview/script/lib/widget.js:393
    Package the Project anyway and install into S60 5th Edition Emulation
    This runs successfully
    Install on N95 and this works.

    Anyone got ideas
    Jim

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

    Re: Beta: S60 WRT Plug-in for Aptana

    Hi Jim,

    when debugging from within a desktop browser, you should use wrt_preview_frame.html file, that will load wrt_preview_main.html into an iframe tag.

    Without doing so, childToParent_Reference will be undefined (as also the $() function) since it references window.parent object, that is actually the iframe parent window.

    Hope it helps,
    Pit

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

    Re: Beta: S60 WRT Plug-in for Aptana

    Hi Steven,

    about your issue: I've tested your code, and It seems to work correctly. Which browser are you using for testing (I've tested with FireFox)? Also, do you get any JS Exception?

    Pit

    EDIT: from more accurate testing, the problem actually exists, and could be related to a wrong softkeys visibility management.
    Last edited by jappit; 2008-11-12 at 15:47. Reason: Further testing...

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

    Re: Beta: S60 WRT Plug-in for Aptana

    Hi dpodwall,

    about softkey's issue noticed by Steven, I wrote some code bits that should be able to fix these 2 related problems:

    * softkeys visibility (they should be hidden by default)
    * right softkey functionality (not correctly working, as reported by Steven)

    Could I send it to you, or post it here?

    Pit

  11. #11
    Regular Contributor
    Join Date
    Jun 2004
    Posts
    55

    Re: Beta: S60 WRT Plug-in for Aptana

    Pit,

    Thanks for the offer, but we're not able to accept code contributions that way. It's not a open-source project, and dealing with any potential IP issue is more complex than us just fixing the bug.

    Dan Podwall
    Nokia

  12. #12
    Super Contributor
    Join Date
    Dec 2005
    Location
    England,UK
    Posts
    1,600

    Thumbs up Re: Beta: S60 WRT Plug-in for Aptana

    Quote Originally Posted by jappit View Post
    Hi Jim,

    when debugging from within a desktop browser, you should use wrt_preview_frame.html file, that will load wrt_preview_main.html into an iframe tag.

    Without doing so, childToParent_Reference will be undefined (as also the $() function) since it references window.parent object, that is actually the iframe parent window.

    Hope it helps,
    Pit
    Hi Pit,
    This works well now.
    Further to this using Vista I created a new profile
    this reloaded the Aptana debugger and Firefox debug automatically

    The new workspace and created another HelloWorldWidget by Create new Project "New Web runtime Widget S60"

    Now the Aptana runs on the internal web server
    I dont know why this works must be some values corrected

    Thanks again
    Jim

  13. #13
    Super Contributor
    Join Date
    Dec 2005
    Location
    England,UK
    Posts
    1,600

    Re: Beta: S60 WRT Plug-in for Aptana

    Hi,
    Well I have got the Hello world working.
    I tried the RSS reader. This works on the N95,but I get an error which appears to be because the widget is not connecting to the RSS feed site.
    ------------
    uncaught exception: Access to restricted URI denied (NS_ERROR_DOM_BAD_URI)
    http://127.0.0.1:8000/RSSreader/FeedUpdateBroker.js
    Line 33
    ------------

    Is there any seeting need to be used for the RSS to connect to the feed correctly. the error is not authorized to use this URL
    Thanks,
    Jim
    Last edited by jimgilmour1; 2008-11-14 at 21:09. Reason: error

  14. #14
    Nokia Developer Expert
    Join Date
    Oct 2008
    Posts
    9

    Re: Beta: S60 WRT Plug-in for Aptana

    Quote Originally Posted by jimgilmour1 View Post
    uncaught exception: Access to restricted URI denied (NS_ERROR_DOM_BAD_URI)
    http://127.0.0.1:8000/RSSreader/FeedUpdateBroker.js
    Line 33
    This is due to Same-Origin-Policy with the Firefox browser.

    Add these lines
    Code:
    // Enable Universal Browser Read
    if (netscape.security.PrivilegeManager.enablePrivilege) 
    	netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");
    before this code on FeedUpdateBroker.js
    Code:
    this.httpReq._open("GET", fullURL, true);
    it should work.

    Thanks,
    Raghava
    Last edited by raghava.chinnappa; 2008-11-17 at 05:22.

  15. #15
    Super Contributor
    Join Date
    Dec 2005
    Location
    England,UK
    Posts
    1,600

    Re: Beta: S60 WRT Plug-in for Aptana

    Quote Originally Posted by raghava.chinnappa View Post
    This is due to Same-Origin-Policy with the Firefox browser.

    Add these lines
    Code:
    // Enable Universal Browser Read
    if (netscape.security.PrivilegeManager.enablePrivilege) 
    	netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");
    before this code on FeedUpdateBroker.js
    Code:
    this.httpReq._open("GET", fullURL, true);
    it should work.

    Thanks,
    Raghava

    Hi
    I managed to get rid of another error which would not allow permission using the
    <SCRIPT> to sign this area of code

    PHP Code:
      <SCRIPT>

        
    // Enable Universal Browser Read
    if (netscape.security.PrivilegeManager.enablePrivilege
        
    netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");

        
    //end patch
        
        // initiate the request
        
    this.httpReq.open("GET"fullURLtrue);
        
    this.httpReq.send(null);
        
    </SCRIPT> 
    which was found at bottom of article at
    http://www.mozilla.org/projects/secu...pts.html#privs
    debug now works outside the signed <SCRIPT> area.

    Thanks,
    Jim

Similar Threads

  1. theme studio s60 v2
    By slimpixi in forum Mobile Java Tools & SDKs
    Replies: 7
    Last Post: 2011-05-30, 11:24
  2. S60 3rd FP2: race condition in layout manager?
    By schoenke in forum Mobile Java General
    Replies: 2
    Last Post: 2009-08-31, 20:40
  3. Differences between S60 MIDP concept emulator beta 0.2 and 0.3
    By Elwoodini in forum Mobile Java Tools & SDKs
    Replies: 0
    Last Post: 2003-06-14, 01:09
  4. Series 60Series 60 MIDP Concept SDK Beta 0.2 Linux bug?
    By kauppi in forum Mobile Java Tools & SDKs
    Replies: 3
    Last Post: 2003-04-07, 09:05

Posting Permissions

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