about popup window

hello:
  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:

http://www.craigambrose.com/projects/redbox

and here's a post describing another approach:

http://javathehutt.blogspot.com/2006/07/rails-realities-part-15-ajax-modal.html

Michael Slater
www.BuildingWebApps.com
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.

Julian.

Learn Ruby on Rails! Check out the FREE VIDS (for a limited time)
VIDEO #4 parts a and b now available!
http://sensei.zenunit.com/