×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    May 2006
    Posts
    2

    S60-Native-Object To Javascript-Object Binding ?

    In how many ways, we can call a native object functions written on S60 C++ framework from Javascript of Web runtime.
    (Javascript Object Extension Support)

    Ex:
    Assume "MyCameraClass" is developed on top of S60 C++ FW.

    "MyCameraJS" Javascript object need to call the methods of "MyCameraClass".

    It can be achieved using Sciptable Plug-In Architecture of Netscape Plug-In API.
    Reference: http://developer.mozilla.org/en/docs...ipting_plugins

    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    <embed type="application/plugin-mimetype">
    <script>
    var embed = document.embeds[0];
    embed.nativeMethod();
    alert(embed.nativeProperty);
    embed.nativeProperty.anotherNativeMethod();
    </script>
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++==

    As per the slide 26-28 of the Web Runtime presentation, it is used.
    Is it exposed for the developers?

    We can bind a native s60 object to javascript object using npruntime (scriptable plugin feature of NPAPI).

    Thanks in advance

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Posts
    115

    Re: S60-Native-Object To Javascript-Object Binding ?

    The way you described is actually how our System Info plugin has been implemented for the Widget Engine, so the technology is there. However,
    Native object to Javascript object binding is not available for developer currently. A good way to ensure platform security affecting by the plugins and widgets will be needed before sharing the API with developers. We will let developers know as soon as we have reach that point.

    Thanks!

  3. #3
    Regular Contributor
    Join Date
    Dec 2007
    Posts
    62

    Re: S60-Native-Object To Javascript-Object Binding ?

    A variant question: I am adding for a new file type. I will (for now at least) turn the file (or other input) named MYFILE.FOO (and/or a MIME type of x-myvendor-foo) into a typical web image, say a PNG.

    If I want the browser (KHTML) to properly handle that file type, where is the documentation or an example of how to do this in the context of the S60 SDK? I see a variety of tools for developing KHTML plugins/extensions in other environments (e.g., KDE).

    So the flow might go:

    1) user surfs to site
    2) user clicks on URI for the new FOO file/object
    3) KHTML plugin/extension passes data stream (or handle to it) to my custom server/process/thread (written in C, C++, Perl, lisp, whatever)
    4) FOO server generates a PNG image
    5) KHTML is magically redirected to the PNG

    I'm particularly interested in tips on implementing steps 3, 4, & 5.

    Thanks!
    Last edited by UncleOp; 2008-01-23 at 04:50. Reason: elaboration

  4. #4
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Posts
    115

    Re: S60-Native-Object To Javascript-Object Binding ?

    When you implement a Netscape Browser Plugin for the S60 browser, you can specify which mime type for plugin is supporting. Check out the developer library page: http://www.forum.nokia.com/document/...g-in_API3.html

    Also there is a plugin code sample in the S60 3rd FP1 sdk you can look at.

    For step 4 and 5, I think you can do some trick with JavaScript to make the redirection happen.

    Cheers!

  5. #5
    Regular Contributor
    Join Date
    Apr 2007
    Location
    Germany, Stuttgart
    Posts
    241

    Re: S60-Native-Object To Javascript-Object Binding ?

    Native object to Javascript object binding is not available for developer currently. A good way to ensure platform security affecting by the plugins and widgets will be needed before sharing the API with developers. We will let developers know as soon as we have reach that point.
    Are ther any news regarding this issue? Is there something like a roadmap, when such APIs will be given to the developers?
    Will it help to join to nokias partner programm, to get access to this api?
    What else can we do to get access to it?

    Best Regards,
    Andi

Similar Threads

  1. Send Protected object (eg sis ,sisx) using bluetooth between s60 phone using CSendUi
    By kstang in forum Symbian Networking & Messaging (Closed)
    Replies: 3
    Last Post: 2007-02-24, 12:51
  2. Active Object in S60 3rd Emulator problem
    By senyasumkin1 in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2006-12-14, 13:36
  3. smsu.lib missing in S60 3rd edition sdk
    By bounaux in forum Tools and SDK Feedback (Closed)
    Replies: 1
    Last Post: 2006-09-08, 11:55
  4. Gauge Object in Python for S60
    By adywicaksono in forum Symbian
    Replies: 3
    Last Post: 2006-05-02, 04:31

Posting Permissions

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