hey brahmaforces,
it all depends on the amount of the things you do on the server side I
guess. I'm currently coding this
huge client/inventory/rental system with CherryPy using bits of
XmlHttpRequest here and there. I'd say the amount of code
for the user interface is almost as lengthy as the server side one.
I tend to use javascript libraries such as JQuery or ExtJs to ease DOM
manipulation so it's just a matter of
linking your stuff together instead of rewriting your own javascript
for your interface. You just need to choose carefully where you should
add javascript.
let's say I have a rental form that I need to fill with a client, some
dates and items to rent.
The user wants to add a new rental so it goes to the rental adding
form. There's an autocomplete ajax call to get the client once the
user begins typing a name/phone number.
There's also a handy javascript calendar to select the rental starting
and ending dates. Here, it's just a matter of choosing the jquery
calendar widget so there ain't too much coding to do for you.
Adding items also uses some autcomplete as the user types the item
number. the autocomplete then fills up the rest of the item's
information. And saving the rental uses a simple POST.
If the user wants to edit that particular rental, he goes into the
rental modification form (which is the same as the rental adding one
with a particular flag). Once there, I don't use javascript to fill in
the information that was entered in the 1st step. I give all those
informations to the form template and fill everything up adding the
client, the dates and a loop to add every items. all done by Python
and Cheetah Template. Once everything is added, I sprinkle the
necessary javascript on the inputs/select boxes/check boxes. That part
is really easy with JQuery.
There ya go. I hope my example has cleared your vision on the matter a
bit. In short, Python handles the data and whatever-template-language-
that-spits-HTML/CSS/Javascript does the rest.
There's plenty of Python in there!
Bernard