473,387 Members | 1,476 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Simplest way to do Python/Ajax with server and client on same machine?

I'm doing some work with a Python program that works hand-in-hand with
the DOM on a local client (processing DOM events, issuing DOM
modification commands, etc.) I'm currently using cherrypy as the Python
server for this communication, and simple AJAX on the client browser
end. This works just fine, I'm simply wondering if there is a better
(even easier) way to do this, if there are libraries I'm not aware of
that I should be, etc.

Thanks,
Ken
Dec 20 '06 #1
2 1935
Kenneth McDonald wrote:
I'm doing some work with a Python program that works hand-in-hand with
the DOM on a local client (processing DOM events, issuing DOM
modification commands, etc.) I'm currently using cherrypy as the Python
server for this communication, and simple AJAX on the client browser
end. This works just fine, I'm simply wondering if there is a better
(even easier) way to do this, if there are libraries I'm not aware of
that I should be, etc.

Thanks,
Ken
You can try looking into PyJamas its a Python version of Google Web
Toolkit, offers a way to create AJAX apps using Python code.

Hope this helps.

Adonis
Dec 20 '06 #2
Adonis Vargas <ad****@REMOVETHISearthlink.netwrites:
Kenneth McDonald wrote:
I'm doing some work with a Python program that works hand-in-hand
with the DOM on a local client (processing DOM events, issuing DOM
modification commands, etc.) I'm currently using cherrypy as the
Python server for this communication, and simple AJAX on the client
browser end. This works just fine, I'm simply wondering if there is
a better (even easier) way to do this, if there are libraries I'm
not aware of that I should be, etc.
Thanks,
Ken

You can try looking into PyJamas its a Python version of Google Web
Toolkit, offers a way to create AJAX apps using Python code.
Have a look at TurboGears too.

Both are still pretty new. Pyjamas is very new, so I'd certainly
think twice about using it for production work right now.
John
Dec 29 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: Ajay | last post by:
hi! can you call a Python application from a Java program? does this require any additional package to be installed? thanks cheers
29
by: Frank Millman | last post by:
Hi all I am writing a multi-user accounting/business system. Data is stored in a database (PostgreSQL on Linux, SQL Server on Windows). I have written a Python program to run on the client,...
31
by: Tony | last post by:
I just noticed that prototype.js is one of the files in the Ajax.NET distribution - I'm pretty concerned about this. Does anyone know if this is the same "prototype.js" that is not well-liked...
28
by: H J van Rooyen | last post by:
Hi, I want to write a small system that is transaction based. I want to split the GUI front end data entry away from the file handling and record keeping. Now it seems almost trivially easy...
2
by: dmagliola | last post by:
Hello all, I'm experiencing a problem with ASP.Net for which I can't find a reasonable explanation, or any information. I'm currently developing an application that, through AJAX, asks the...
6
by: Bart Van der Donck | last post by:
Hello, I'm presenting my new library 'AJAX Cross Domain' - a javascript extension that allows to perform cross-domain AJAX requests. http://www.ajax-cross-domain.com/ Any comments or...
7
by: =?Utf-8?B?QmlsbHkgWmhhbmc=?= | last post by:
我们现在遇到一个问题,通过wcf创建的webservice,选择windows service作为宿主,采用java作为客户端调用成功,但是无法使用asp.net ajax调用。...
0
by: Abubakar | last post by:
Hi, I've been assigned to work on a asp.net page that when viewed on internet, renders very slowly and its hosted on a client machine which is a p4 3.0ghz HT, with 2 gb ram running windows...
37
by: Michael Palmer | last post by:
As anyone knows, the state of Python GUI programming is a little fractured at this time, with many toolkits, wrappers and meta-wrappers dead and alive, with or without documentation. I've come...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.