Re: Ajax Form Submission Trouble
On Aug 19, 3:11 am, Thejaswi Puthraya <[EMAIL PROTECTED]> wrote: > > Thanks a bunch, but would that go into the markup or into the > > comments.js file? I'm a js newb (really bad one). I'm guessing into > > the js file, the submit button doesn't have an id. Here is my current > > comments.js filehttp://dpaste.com/17243/ > > It would go into your template and not into your js file...it is > recommended that you have an id for your submit button. > > Cheers > Thejaswi Puthraya still doesn't work, even with an ID. :( --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Ajax Form Submission Trouble
> Thanks a bunch, but would that go into the markup or into the > comments.js file? I'm a js newb (really bad one). I'm guessing into > the js file, the submit button doesn't have an id. Here is my current > comments.js filehttp://dpaste.com/17243/ It would go into your template and not into your js file...it is recommended that you have an id for your submit button. Cheers Thejaswi Puthraya --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Ajax Form Submission Trouble
On Aug 19, 1:29 am, Thejaswi Puthraya <[EMAIL PROTECTED]> wrote: > > I'm using mochikit > > Try, > > onclick="$('button_id').disabled=true;" > > It is 'disabled' and not 'disable'. > Check out button properties > athttp://www.w3schools.com/htmldom/dom_obj_button.asp > According the W3Schools...disabled works since IE5.0...so I see no > reason why it shouldn't work in IE7.0 > > Cheers > Thejaswi Puthraya Thanks a bunch, but would that go into the markup or into the comments.js file? I'm a js newb (really bad one). I'm guessing into the js file, the submit button doesn't have an id. Here is my current comments.js file http://dpaste.com/17243/ --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Ajax Form Submission Trouble
> I'm using mochikit Try, onclick="$('button_id').disabled=true;" It is 'disabled' and not 'disable'. Check out button properties at http://www.w3schools.com/htmldom/dom_obj_button.asp According the W3Schools...disabled works since IE5.0...so I see no reason why it shouldn't work in IE7.0 Cheers Thejaswi Puthraya --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Ajax Form Submission Trouble
Thejaswi Puthraya wrote: > > I seem to have some terribly stupid users that repeadtly press the > > submit button on an ajax comments form. How can clear the form after > > the user submits the message like youtube does (they are ajax'd > > aswell). I've tried onclick="this.disable=true" and all, but it > > doesn't work in IE7. Any suggestions or tips would be greatly > > appreciated. > > Which Javascript library are you using??? Most javascript libraries > handle the Ajax stuff as browser independent as possible (not always > true though). > > Cheers > Thejaswi Puthraya I'm using mochikit --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Ajax Form Submission Trouble
On Aug 14, 3:11 am, dor <[EMAIL PROTECTED]> wrote: > Try this: onclick="this.disabled=true;" > Notice the "disabled" instead of "disable"! didn't work :( In IE7. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Ajax Form Submission Trouble
Try this: onclick="this.disabled=true;" Notice the "disabled" instead of "disable"! --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Ajax Form Submission Trouble
> I seem to have some terribly stupid users that repeadtly press the > submit button on an ajax comments form. How can clear the form after > the user submits the message like youtube does (they are ajax'd > aswell). I've tried onclick="this.disable=true" and all, but it > doesn't work in IE7. Any suggestions or tips would be greatly > appreciated. Which Javascript library are you using??? Most javascript libraries handle the Ajax stuff as browser independent as possible (not always true though). Cheers Thejaswi Puthraya --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---