×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jul 2007
    Posts
    9

    Widget extension

    Hi,

    I am having a problem with accessing the nokia widget extensions (for accessing device APIs) when my widget goes from one page to another, or when the current page is reloaded. Basically, if there is a line in my widget like this

    HTML Code:
    <A HREF="javascript:history.go(0)">Click to refresh the page</A>
    or
    HTML Code:
    <A HREF="index.html">Click to reload current page</A>
    and the user clicks on the link, the page is properly reloaded, but then the widget extension goes out of scope. The extension only works when the widget is loaded for the first time. If anyone else has encountered this problem, please help.

    Thanks

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

    Re: Widget extension

    While this is not exactly your problem, I noticed that if I load a new html page then the javascript events for the menu object no longer work.

    It may be that the proprietary apis only work for the starting html file specified in the plist.

  3. #3
    Registered User
    Join Date
    Jul 2007
    Posts
    9

    Re: Widget extension

    I tried the S60WidgetExamples that come with the 5th edition SDK, and got the same issue.

    If I put a link in the widget such as this
    HTML Code:
    <A HREF="index.html">Click to reload current page</A>
    the widget seems to work after I first load it and click one of the buttons (i.e. the green tick mark shows up). But then if I click my link (which simply loads the same page again) there is a popup warning, and the same buttons don't work (a red cross shows up).

    I wonder if the widget extensions are intentionally meant to work only on first load, or is it a bug with the web runtime??

Similar Threads

  1. create and delete widget shortcut icon
    By priti2208 in forum Symbian
    Replies: 9
    Last Post: 2009-07-31, 11:08
  2. Recording in Amr Format
    By losym in forum Symbian Media (Closed)
    Replies: 12
    Last Post: 2009-03-26, 06:41
  3. My widget stopped working. Feed read timeout
    By miklos.szanyi@gmail.com in forum Widsets Development
    Replies: 0
    Last Post: 2009-01-23, 10:00

Posting Permissions

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