On Apr 13, 4:21 pm, Matt Frost <[email protected]> wrote:
> I get the following error when trying to use it.
>
> NameError in Clients#show
> uninitialized constant Hobo::Dryml
>
That error is very strange. Can you send the full backtrace?
> Also, my forms are already
> in hjq-dialog boxes. Will this still work from a dialog already?
The reason that it uses a formlet is because nested forms are illegal
in html. Usually your select-one is part of a form, so formlets are
essential in the most common case. However, if your select-one isn't
part of a form or you define your dialog box outside of the form
containing the select-one, you can use a form in your dialog.
select-one-or-new-dialog does not have any javascript, so you should
be able to extract pieces from its source code and use directly.
> Also,
> is there a way to get the dialog to close after submission? I have been
> trying all day to get it to close when the submit button or preferably the
> jquery "ok" button. I notice there is a submit_formlet_and_close button but
> not a submit_form_and_close. Thank you for your help.
use a success callback on your form:
<form update="mypart" success="jQuery('#myform').dialog('close')">...</
form>
--
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.