1. #1
    Sencha User
    Join Date
    Nov 2007
    Posts
    294
    Vote Rating
    0
    Sesshomurai is on a distinguished road

      0  

    Default Native Bridge

    Native Bridge


    Hi,
    I'm working on a pet project and wanted to see if its something people find interesting enough that I will develop it fully and release it.

    Basically, it _currently_ does the following, entirely asynchronously via callbacks to your app:

    - Read/Write Local and temporary files on the client machine
    - Get directory listings on client machine
    - Perform HTTP POST/GET operations across domains and get the results
    - Create native 'system tray' menus with callbacks into your javascript.

    For example, to read a local disk file and POST to a URL:
    Code:
                    var quark = new Quark();
    
                    // Non-blocking native operations
                    quark.readLocalFile('/tmp/test.txt',function(data) {
                        // Callback containing the read file data
                        alert(data);
                    });
    
                    quark.postToUrl('http://someotherhost/post.php',{
                        'username':'user',
                        'passwd':'P123'
                    },
                    function(response) {
                            // POST response sent here when completed
                    });
    It can also prompt with the native Save As or Load dialog to browse the local file system and perform loads or saves.

    It can do this WITHOUT a client-side installer and works across all platforms, Windows, Mac, Linux.

    Useful? Redundant? Am I re-inventing the wheel?

    thanks.

  2. #2
    Sencha User
    Join Date
    Nov 2007
    Posts
    294
    Vote Rating
    0
    Sesshomurai is on a distinguished road

      0  

    Default


    Also forgot to mention that it requires ExtJS, so its for ExtJS apps.

  3. #3
    Ext User tonedeaf's Avatar
    Join Date
    Dec 2007
    Posts
    137
    Vote Rating
    1
    tonedeaf is on a distinguished road

      0  

    Default


    Quote Originally Posted by Sesshomurai View Post
    It can do this WITHOUT a client-side installer and works across all platforms, Windows, Mac, Linux.
    So, without a client side installer, it can do file operations? using a browser? How do you achieve that?

  4. #4
    Sencha User
    Join Date
    Nov 2007
    Posts
    294
    Vote Rating
    0
    Sesshomurai is on a distinguished road

      0  

    Default


    Digitally signed, trusted Java applet hidden in the page. Then JavaScript<->Applet. Works great.

    I'm going to add a lot of useful features I think like:

    - ftp
    - media
    - native app launching

    What else?

    The cool thing about my approach over Air and Google Gears, again, is no client installer. All secure through browser security model. And works same across all platforms. No need to re-compile Air app for different platforms. No C++, etc.

    Seems to work so far.

  5. #5
    Ext JS Premium Member
    Join Date
    Apr 2007
    Posts
    289
    Vote Rating
    0
    jheid is on a distinguished road

      0  

    Default


    Quote Originally Posted by Sesshomurai View Post
    Digitally signed, trusted Java applet hidden in the page. Then JavaScript<->Applet. Works great.

    I'm going to add a lot of useful features I think like:

    - ftp
    - media
    - native app launching

    What else?

    The cool thing about my approach over Air and Google Gears, again, is no client installer. All secure through browser security model. And works same across all platforms. No need to re-compile Air app for different platforms. No C++, etc.

    Seems to work so far.
    There are some things to mention. First of all, you have to have Java installed. Secondly, you have to trust the certificate owner (are you sure, everybody trusts you?). If you want to sign it yourself you have to buy a certificate which is IMHO expensive...

    The desktop integration is good in Java but I think it's not that far as with Air.

  6. #6
    Sencha User
    Join Date
    Nov 2007
    Posts
    294
    Vote Rating
    0
    Sesshomurai is on a distinguished road

      0  

    Default


    Yes. You are right on those points. Java is installed with most browsers and OS's by default. At least moreso than installing Air or Gears which is never installed by default.

    The act of trusting the Java applet is necessary. My company will produce the applet and get the appropriate Verisign/Thawte certs behind it. And its a good point to make.

    Aside from that, the technique alone I think is better since it is sandbox security and not permanently installed on a users computer. So its good for distributing to users in a company, etc.

    Thanks for the comments.

  7. #7
    Ext JS Premium Member
    Join Date
    Apr 2007
    Posts
    289
    Vote Rating
    0
    jheid is on a distinguished road

      0  

    Default


    Quote Originally Posted by Sesshomurai View Post
    Aside from that, the technique alone I think is better since it is sandbox security and not permanently installed on a users computer. So its good for distributing to users in a company, etc.
    There's no sandbox security with signed applets as you need to break out of the sandbox to get a native integration.

  8. #8
    Sencha - Community Support Team mschwartz's Avatar
    Join Date
    Nov 2008
    Location
    San Diego, Peoples' Republic of California
    Posts
    2,053
    Vote Rating
    17
    mschwartz will become famous soon enough mschwartz will become famous soon enough

      0  

    Default


    Can be done with flash. I think 99.999% of browsers have flash already installed.

    Can do the javascript <-> flash thing.

  9. #9
    Ext JS Premium Member
    Join Date
    Apr 2007
    Posts
    289
    Vote Rating
    0
    jheid is on a distinguished road

      0  

    Default


    Quote Originally Posted by mschwartz View Post
    Can be done with flash.
    No. You can't use the native tray with the flash plugin.

    Quote Originally Posted by mschwartz View Post
    I think 99.999% of browsers have flash already installed.
    Definitely not Although it has many installation there are many old Flash installations (e.g. version 7) out there. If you look at the current HTML 5 discussions I think that Flash will loose in the future. But there are more Flash installations than Java installations, that's for sure.

  10. #10
    Sencha - Community Support Team mschwartz's Avatar
    Join Date
    Nov 2008
    Location
    San Diego, Peoples' Republic of California
    Posts
    2,053
    Vote Rating
    17
    mschwartz will become famous soon enough mschwartz will become famous soon enough

      0  

    Default


    All but the system tray can be done with flash.

    I'd add the ability to do pure socket style communication as well.

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar