×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Oct 2008
    Posts
    3

    a question about JavaScript function calling

    how can I call the function of Javascript in Symbian C++? Should I develop a new UI event responded by the function, and trigger the event in C++?

    Thanks in advance.

  2. #2
    Super Contributor
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    9,561

    Re: a question about JavaScript function calling

    Are you talking about doing it from a widset (Java code) or a widget (HTML & Javascript packaged)?

    If the former, search for "midpjni" for examples.

    If the latter, then you can launch C++ based applications already installed on the device, but I suspect calling C++ subroutines/DLL and interprocess communications between a widget and C++ app running on the device is probably not possible.

  3. #3
    Registered User
    Join Date
    Oct 2008
    Posts
    3

    Re: a question about JavaScript function calling

    Hi, Petrib
    Thank you for your reply.
    I want to realize the asynchronous callback mechanism between c++ and javascript. In detail, I developed a Widget Engine, which can parse and excute the extension object of javascript in Widget. For example, when Engine(written by c++) meet a extension object (such as SendMail) defined in javascipt, it will run for a long time, I don't want javascipt to waiting for it. Therefore, I need the Engine call a function defined in javascript to show the result on UI when the result of SendMail was returned.

    BR
    Zhu Xinhua

  4. #4
    Registered User
    Join Date
    Oct 2008
    Posts
    3

    Thumbs down Re: a question about JavaScript function calling

    Hi,
    I think that the key is to let JavaScript respond to the event send by Symbian C++. Is it right? But I don't know how to do it.

Similar Threads

  1. Calling Java function from Symbian C++
    By shweta_912 in forum Symbian
    Replies: 0
    Last Post: 2007-12-05, 02:38
  2. Music resources
    By LiveRock in forum Mobile Java General
    Replies: 9
    Last Post: 2007-12-01, 08:15
  3. simple question . midp 1.0 support bluetooth and obex function ?
    By helloeveryone in forum Mobile Java General
    Replies: 1
    Last Post: 2003-12-03, 21:25
  4. about the calling function!!
    By fuzw in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2002-07-16, 09:48
  5. Calling ASP function from a WML-link!
    By Nokia_Archive in forum Browsing and Mark-ups
    Replies: 1
    Last Post: 2002-05-14, 12:10

Posting Permissions

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