hmmm... not sure. looks correct at first glance but I'm no expert in hobo javascript calls.
On May 22, 5:58 am, atmorell <[email protected]> wrote: > Thi is the generated html: > > <form onsubmit="Hobo.ajaxRequest(this, ['categories'], > {onBefore:function(request){$('form-id-here').disable()}, > onComplete:function(request){$('form-id-here').enable()}}); return > false;" method="post" id="form-id-here" class="new category" action="/ > categories"><div class="hidden-fields"><input type="hidden" > value="categories/index" name="page_path" id="page_path"><input > type="hidden" value="*removed*=" name="authenticity_token"></div> > > Any thoughts? > > On May 21, 12:30 am, kevinpfromnm <[email protected]> wrote: > > > > > what gets generated (html-wise) from that? > > > On May 20, 2:04 pm, atmorell <[email protected]> wrote: > > > > No matter what I do the before/complete javascripts won't fire. > > > Javascript validation is working fine, so hobo java is loaded and > > > working. > > > > <form with="&Category.new" before="$('form-id-here').disable()" > > > complete="$('form-id-here').enable()" id="form-id-here" > > > update="categories"/> > > > > Is the form Ajax callbacks working in hobo 1.0? > > > > On May 17, 8:53 pm, Bryan Larsen <[email protected]> wrote: > > > > > I suspect that you're not the only one who'd find this functionality > > > > useful. If you wish to add this functionality to Hobo itself as an > > > > option toform, a patch/pull request would be looked at favourably. > > > > > grepping the source code for 'resetForm' and 'reset_form' will give you > > > > an indication of where the functionality would need to be added. > > > > > Bryan > > > > > kevinpfromnm wrote: > > > > >>Fromhttp://cookbook.hobocentral.net/api_taglibs/rapid_formsthehooks > > > > > you have available are: > > > > >before, success, failure, complete > > > > > > for your issue, probably want to disable theformor at least the > > > > > submit button with thebeforehook and then re-enable it on the > > > > > complete hook (success and failure don't really apply). > > > > > > <form...before="$('form-id-here').disable()" complete="$('form-id- > > > > > here').enable()" id="form-id-here" ...> > > > > > > On May 17, 11:48 am, atmorell <[email protected]> wrote: > > > > >> Could you give an example? I have never worked with Ajax hooks > > > > >>before.. > > > > > >> On 17 Maj, 19:38, kevinpfromnm <[email protected]> wrote: > > > > > >>> there's nothing specific but you could always tie in on the ajax/ > > > > >>> javascript hooks to do that > > > > >>> On May 17, 5:15 am, atmorell <[email protected]> wrote: > > > > >>>> Hello, > > > > >>>> Does hobo provide any options to disable the submit button while > > > > >>>> the > > > > >>>> Ajax request is being processed? Some of my users is hamering the > > > > >>>> create button.. > > > > >>>> Best regards. > > > > >>>> Asbjørn Morell. > > > > >>>> -- > > > > >>>> You received this message because you are subscribed to the Google > > > > >>>> Groups "Hobo Users" group. > > > > >>>> To post to this group, send email to [email protected]. > > > > >>>> To unsubscribe from this group, send email to > > > > >>>> [email protected]. > > > > >>>> For more options, visit this group > > > > >>>> athttp://groups.google.com/group/hobousers?hl=en. > > > > >>> -- > > > > >>> You received this message because you are subscribed to the Google > > > > >>> Groups "Hobo Users" group. > > > > >>> To post to this group, send email to [email protected]. > > > > >>> To unsubscribe from this group, send email to > > > > >>> [email protected]. > > > > >>> For more options, visit this group > > > > >>> athttp://groups.google.com/group/hobousers?hl=en. > > > > >> -- > > > > >> You received this message because you are subscribed to the Google > > > > >> Groups "Hobo Users" group. > > > > >> To post to this group, send email to [email protected]. > > > > >> To unsubscribe from this group, send email to > > > > >> [email protected]. > > > > >> For more options, visit this group > > > > >> athttp://groups.google.com/group/hobousers?hl=en. > > > > > -- > > > > You received this message because you are subscribed to the Google > > > > Groups "Hobo Users" group. > > > > To post to this group, send email to [email protected]. > > > > To unsubscribe from this group, send email to > > > > [email protected]. > > > > For more options, visit this group > > > > athttp://groups.google.com/group/hobousers?hl=en. > > > > -- > > > You received this message because you are subscribed to the Google Groups > > > "Hobo Users" group. > > > To post to this group, send email to [email protected]. > > > To unsubscribe from this group, send email to > > > [email protected]. > > > For more options, visit this group > > > athttp://groups.google.com/group/hobousers?hl=en. > > > -- > > You received this message because you are subscribed to the Google Groups > > "Hobo Users" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]. > > For more options, visit this group > > athttp://groups.google.com/group/hobousers?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Hobo Users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group > athttp://groups.google.com/group/hobousers?hl=en. -- You received this message because you are subscribed to the Google Groups "Hobo Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.
