DG, what you describe is the AJAX approach. I'd use jQuery to help
with this sort of thing. use jQuery.post()
you would have to define a url to handle the post request and a view
function to pass it to. from the view function, you could return an
HttpResponse() with the confirmation bit of html or
Put another way, how do execute a django function that simply does something
with the data in my database? It seems that views are the only way to do
this but perhaps I'm missing something.
Thanks in advance for all the help.
Best,
DG
On Wed, Mar 24, 2010 at 6:26 PM, Django Grappelli <
djang
Hi Guys,
Thanks for your help. I was thinking of taking an AJAX approach, but
wondered if there were a simpler way. Basically, I'd like to have the user
click, e.g. a delete button. It would delete the selected record and
display a small confirmation popup but I don't want to redirect to another
Daniel Roseman @ 24-03-2010 11:43:
But what do you mean, 'without changing the HTML'? In order to run a
view, the user must make a page request. That will result in new data
I guess he is talking about AJAX.
--
Omer Barlas
omer.bar...@gmail.com
--
You received this message because you are sub
On Mar 24, 3:21 am, Django Grappelli
wrote:
> Hi Everyone,
> Django noob here. How do I write a view function that can modify
> database records without changing the html on the screen? Also, from
> a best-practices standpoint, is there any reason I shouldn't be
> attempting this?
> Cheers,
> DG
Hi Everyone,
Django noob here. How do I write a view function that can modify
database records without changing the html on the screen? Also, from
a best-practices standpoint, is there any reason I shouldn't be
attempting this?
Cheers,
DG
--
You received this message because you are subscribed
6 matches
Mail list logo