开发者

How to open a popup using Ajax

I'm using Ruby on Rails 2.3.8 and I would like to know how to open a popup using Ajax, instead of jQ开发者_如何学Gouery, so when I click in the link that will open it, an action is executed to load some collections and other stuff.

Thanks in advance!


First i think you are messing up some concepts here. JQuery is a javascript framework and AJAX is a set of development methods. See: http://en.wikipedia.org/wiki/Ajax_%28programming%29 and: http://en.wikipedia.org/wiki/Jquery

I think that you mean "How do i open a link in a lightbox like screen instead of a javascript popup". (correct me if im wrong interpreting your question :)

Please take a look at some open source tools like: http://chriswanstrath.com/facebox/ http://fancybox.net/

And there are tons and tons of other alternatives. Just google for "lightbox"

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜