开发者

Popup message overriding the current browser page

开发者 https://www.devze.com 2023-03-21 06:52 出处:网络
I am using Ruby on Rails 3.0.9 and I would like to show a block (that is, something like a popup message - I think it should be a HTML div tag...) in the middle of a page without open a new page.

I am using Ruby on Rails 3.0.9 and I would like to show a block (that is, something like a popup message - I think it should be a HTML div tag...) in the middle of a page without open a new page.

For example, clicking a link in a page it should appear overriding the current browser page and should have a fixed width. In few words, I would like开发者_运维知识库 to implement something as a Facebook "generic dialog popup".

How can I implement that? How I must state HTML and CSS?


There are many, many solutions to modal dialogs in JS.

For example:

  • http://ssssnakes.com/smoke/
  • http://jqueryui.com/demos/dialog/
  • http://onehackoranother.com/projects/jquery/boxy/
0

精彩评论

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