about popup window

  I want something behavioring like ajax:when click a link,invoke a
method in some class,then the response content will be displayed in a
mini popup window below the link,what's more,user can close this mini
window.how do i realize this?

who can help me?

who can help me?

Here's one example implementation you could look at that is nicely
packaged up:


and here's a post describing another approach:


Michael Slater
Resources for Rails Developers

You might need to give us a little more context for your problem.

If you want to make a popup window, add in a target to a link
(assuming you want a link)

link_to('something', {:action => 'blah'}, {:target => '_new'})

That should work.


Learn Ruby on Rails! Check out the FREE VIDS (for a limited time)
VIDEO #4 parts a and b now available!