Sunday, September 16, 2012

Re: how to use java script alert in view? i use form submit on post method. After sucessfull opreation in view i want alert

Navnath Gadakh wrote:

>
>
Hello Navnath,

You can either submit the form via javascript and display the alert based on
the response from the view, or submit the form normally and in your
javascript code poll another view to check the result.

The first method is better, in my view. Both methods depend on the user
having enabled javascript in their browser. Depending on your use case,
this may not be a safe assumption.

Cheers,

Kev

--
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate