Any projects to provide Javascript-style client-side browser accessvia Python?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Kenneth McDonald

    #1

    Any projects to provide Javascript-style client-side browser accessvia Python?

    I'm curious about this because, quite aside their function as web
    browsers, it is now possible to build some very useable interfaces
    using browsers with HTML, CSS, and JavaScript. (The biggest problem
    is still the lack of a decent text widget.) However, JavaScript isn't
    really a good language for building complex applications, and it
    would be very cool if there were some way to use Python to replace
    client-side JavaScript, in order to gain access the DOM.

    So anyone know if there are projects underway on this?

    Thanks,
    Ken
  • Paul Rubin

    #2
    Re: Any projects to provide Javascript-style client-side browser access via Python?

    Kenneth McDonald <kenneth.m.mcdo nald@sbcglobal. net> writes:[color=blue]
    > I'm curious about this because, quite aside their function as web
    > browsers, it is now possible to build some very useable interfaces
    > using browsers with HTML, CSS, and JavaScript. (The biggest problem
    > is still the lack of a decent text widget.) However, JavaScript isn't
    > really a good language for building complex applications, and it
    > would be very cool if there were some way to use Python to replace
    > client-side JavaScript, in order to gain access the DOM.
    >
    > So anyone know if there are projects underway on this?[/color]

    Python isn't a good choice as a browser language because it doesn't
    have enough security. Hostile scripts can take over the interpreter
    too easily.

    There was a Python-based browser effort called Grail which I don't
    think got very far.

    Personally I think there are very few good uses for complex client
    side browser scripts. Most sites that use Javascript don't really
    need to.

    Comment

    • Do Re Mi chel La Si Do

      #3
      Re: Any projects to provide Javascript-style client-side browser accessvia Python?

      Hi !

      [color=blue][color=green][color=darkred]
      >>> So anyone know if there are projects underway on this?[/color][/color][/color]

      Yes, I work on this way. But it's a long work, because I have few time...

      But there are certainly other projects.


      @-salutations

      Michel Claveau


      Comment

      • Leif K-Brooks

        #4
        Re: Any projects to provide Javascript-style client-side browseraccess via Python?

        Kenneth McDonald wrote:[color=blue]
        > I'm curious about this because, quite aside their function as web
        > browsers, it is now possible to build some very useable interfaces
        > using browsers with HTML, CSS, and JavaScript. (The biggest problem is
        > still the lack of a decent text widget.) However, JavaScript isn't
        > really a good language for building complex applications, and it would
        > be very cool if there were some way to use Python to replace
        > client-side JavaScript, in order to gain access the DOM.[/color]

        You could try Livepage, which is a part of Nevow <http://nevow.com/>. It
        doesn't cut JavaScript completely out of the picture, but you could put
        all of your real code in Python and only use JavaScript as a simple
        layer to access the DOM.

        Comment

        • Alessandro Bottoni

          #5
          Re: Any projects to provide Javascript-style client-side browser access via Python?

          Kenneth McDonald wrote:[color=blue]
          > So anyone know if there are projects underway on this?[/color]

          As long as I know, Mozilla (as Firefox, Thunderbird and Sunbird) can host
          Python as an internal scripting language thanks to PyXPCOM (the Python
          binding to the XPCOM cross-platform COM technology used by Mozilla). In
          this case, you have to recompile Mozilla from source to enable the PyXPCOM
          support (that is: you will end up having a "custom" Mozilla to distribute
          to your users).

          Have a look at www.mozilla.org and www.mozdev.org and/or search for PyXPCOM
          on Google.

          (Most likely, something like that is available for Konqueror and others
          Linux browsers, as well)

          HTH

          -----------------------------------
          Alessandro Bottoni

          Comment

          Working...