Ok so in your hobo-jquery.dryml file replace he following lines:
dryml = Hobo.const_defined?(:Dryml) ? Hobo::Dryml : Dryml
ajax_attrs, html_attrs =
attributes.partition_hash(Hobo::RapidHelper::AJAX_ATTRS)
Hobo::Rapid::Helper
hiddens_div = element(:div, {:class => "hidden-fields"},
[http_method_hidden, page_path_hidden, auth_token, hiddens].join)
body = [hiddens_div, body].join
With
dryml = defined?(Hobo::Dryml) ? Hobo::Dryml : Dryml
ajax_attrs, html_attrs =
attributes.partition_hash(Hobo::Rapid::Helper::AJAX_ATTRS)
hiddens_div = element(:div, {:class => "hidden-fields"},
[http_method_hidden, page_path_hidden, auth_token, hiddens].safe_join)
body = [hiddens_div, body].safe_join
I copied the select-one-or-new-dialog into my view instead of using the tag.
I also had to remove the dialog and part_id assignments. I replaced those
with dialog-#{object_id} and part-#{object-id}
The success javascript also did not work for me. I just set the part on the
original form and have the formlet update that and close on success.
And you should be good to go. The only issue I am having is if I have two
on a form. It breaks the second one. I havent quite figured out why. It
is dropping the name value in the select box and is not getting posted with
the rest of the form.
Otherwise, with just one it is works great.
On Fri, Apr 15, 2011 at 6:29 PM, Bob Sleys <[email protected]> wrote:
> I've been trying to follow this thread because this is something I want to
> add to an app I've been working on. I'm not quite at the point where I need
> to work on this part yet however and much of what I've seen posted here I
> didn't quite follow. Could you please summarize how to go about doing this
> once it's all working that is.
>
> Thanks
> Bob
>
> --
> 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.
>
--
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.