Re: how to use java script alert in view? i use form submit on post method. After sucessfull opreation in view i want alert
on sucess and unsucess i want java script alert. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/JfhG8Aul82YJ. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: how to use java script alert in view? i use form submit on post method. After sucessfull opreation in view i want alert
17.9.2012 7:31, Navnath Gadakh kirjoitti: -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/t6s6YgYVAY8J. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en. First, a small nitpicking: you shouldn't post question to subject line only. It all depends what you really mean by "alert"? Standard javascript alert popup? That can be quite easily done by redirecting a view that has template that contains javascript alert that is triggered for example onload event. Though in general all kind of interruptive messaging is bad and will cause a pain after a while. Also what would you show in case of unsuccessful operation? An alert as well? -- Jani Tiainen - Well planned is half done and a half done has been sufficient before... -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
how to use java script alert in view? i use form submit on post method. After sucessfull opreation in view i want alert
-- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/t6s6YgYVAY8J. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.