that sounds nice and simple... thx Marnen
On Oct 24, 3:48 pm, Marnen Laibow-Koser <rails-mailing-l...@andreas-
s.net> wrote:
> lunaclaire wrote:
> > hmmm.... thx, Phillip...
>
> > I was thinking that there was a rails aspect in that there'd be
> > something tricky in catching the onunload event in JS and then if the
> > user wanted to save, posting back from there to my rails action to
> > handle the saving... no?
>
> > I guess I'm not seeing how I post to that action from JS...
>
> Have the JS call submit() on your form element. It's still in the DOM
> with all the data that the user entered.
>
> >maybe I'm
> > overthinking it and it's simpler than that... maybe I'm just tired :-)
>
> :)
>
> Best,
> --
> Marnen Laibow-Koserhttp://www.marnen.org
> [email protected]
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" 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/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---