On Nov 7, 1:52 pm, Kellsborojack <[email protected]> wrote:
> So what I'm trying to do is once the link is clicked, the relevant
> form is displayed in the .box div rather than on a new page.
I think the simplest way would be to just output all the HTML on the
page, then just hide or show the proper divs using JavaScript. Hide
the form div by default, then have the "sign up" or "sign in" links
hide/show the proper divs:
#links.box
...etc...
#login.box{:style=>"display:none;"}
...etc...
Then calling the following function will hide the links and show the
login form.
$('links', 'login').invoke('toggle');
--
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.