With AJAX you can.  Javascript is interpreted by the browser, and you 
want to call a serverside script.  Or you could do it as a form 
submission, but I assume you want it to happen without refreshing the 
page, so AJAX is how you would do that.

Eric wrote:
> Hello, this might be a silly question, but I'm wondering if javascript
> can call a python script, and if so, how?
>
> To elaborate, I'm trying to customize the admin change_list page so
> that editing can be done directly from the change_list, instead of
> clicking into the admin change_form page. To do this, I have a
> javascript that pops up a prompt box when an element in the
> change_list table is clicked. I'd then like to call a python script to
> modify that element in the database (since I don't believe the DB can
> be modified directly in the javascript).
>
> If this is unnecessary or just plain wrong, or if someone has a better
> way of editing items directly from the change_list, please let me
> know! Thanks much for the help.
> >   


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to