×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    May 2008
    Location
    India
    Posts
    172

    Invoke a method in a widget from a web page ...

    Hi All,

    I need to invoke a method in a javascript file in a widget from a web page using javascript. Is this possible? If so, then how? For instance a web page contains a button, which when clicked invokes a method - getGPSdata() in a javascript file called basic.js in the widget.
    Could someone please help me out?
    Thanks.

    Regards,
    Shanker

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

    Re: Invoke a method in a widget from a web page ...

    Hi Shanker,

    I'm not sure I've correctly understood your question: is the "web page" you're referring to loaded (and displayed) from the widget itself?

    Pit

  3. #3
    Regular Contributor
    Join Date
    May 2008
    Location
    India
    Posts
    172

    Re: Invoke a method in a widget from a web page ...

    Hi Pit,

    Thanks for replying.
    Yes, the web page is loaded and displayed from the widget itself.
    I have a web page with a few buttons, one of which is "Map" which shows a map, when clicked.
    This page is hosted on a web server.
    I load this page from my widget and when I click on the "Map" button, it tries to invoke a method in a javascript file "basic.js" which is a part of the widget package, which in turn fires up the GPS module on my device and sends location coordinates to a specific URL, which plots the device location on the map.
    Hope this helps you in understanding my problem.
    Please help.
    Thanks.

    Regards,
    Shanker
    Last edited by nair.shanker; 2010-12-19 at 18:04. Reason: Post needed to be edited for lucidity.

Similar Threads

  1. asp.net web page detect the handset if it support wrt widget
    By yfarag in forum General Development Questions
    Replies: 1
    Last Post: 2010-08-04, 09:34
  2. viewing a WEB page on a WRTKit based widget
    By juannoguera in forum Symbian
    Replies: 2
    Last Post: 2010-03-13, 10:46
  3. Adapting a web page to widget
    By antonp in forum Symbian
    Replies: 0
    Last Post: 2008-10-11, 09:22
  4. [announce] RaccoonOnMap Widget to your web page
    By talakosk in forum Mobile Web Server
    Replies: 0
    Last Post: 2007-05-25, 08:57
  5. Replies: 0
    Last Post: 2006-01-20, 06:53

Posting Permissions

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