keyongtech


  keyongtech > python > 08/2005

 #1  
08-26-05, 08:29 PM
Kenneth McDonald
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
 #2  
08-26-05, 09:04 PM
Paul Rubin
Kenneth McDonald <kenneth.m.mcdonald> writes:
> 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?


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.
 #3  
08-26-05, 09:20 PM
Do Re Mi chel La Si Do
Hi !


>>> So anyone know if there are projects underway on this?


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
 #4  
08-26-05, 10:49 PM
Leif K-Brooks
Kenneth McDonald wrote:
> 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.


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.
 #5  
08-27-05, 10:04 AM
Alessandro Bottoni
Kenneth McDonald wrote:
> So anyone know if there are projects underway on this?


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
Similar Threads
In python CGI, how to pass "hello" back to a javascript function asan argument at client side?

Hi everyone, How can I pass a string generated from python cgi at server side to a javascript function as an argument at client side? Here is my case: 1. client...

Server side control that maintains viewstate for client-side javascript variables?

I have some client-side javascript for that I use for dhtml stuff such as hiding div tags based on user menu selections, etc. I need a way to maintain the state of javascript...

does asp.net provide a solution to post back from javascript to raise an server-side event in the page?

i want to raise an event on the server with a javascript call on the client. i found a solution but i think its not so elegant. the solution is: i call...

Updating AD attributes with client-side javascript in a browser

I'm writing a fairly quick app to keep our HR data (from a SQL DB) and our AD data in sync. Of course, my boss wants a web interface and I'm not a web programmer (I was a...

Python as client-side browser script language

What would it take to create a Firefox extension that enables Python as a script language in the browser - just like Javascript? Is it at all possible? Are the hundred good...


All times are GMT. The time now is 09:39 AM. | Privacy Policy