Looking through the posts here, it looks like quite a few people have been looking for a simple way of opening dialogs from a URL without needing to create a link.
Using the following code seems to work (at least in IE 6 and Firefox):
var myModal = new Control.Modal({ href: "http://www.example.com/" });
myModal.open();
The basic idea being that for basic dialogs the code mostly just looks for the presence of "element.href".
The only exceptions that I've seen are if you use the "hover" or "position = mouse" options.
With that being said, the following will give you a hovering dialog that disappears when the mouse is moved off the dialog:
var myModal = new Control.Modal(
{
href: "http://www.example.com/",
observe: Prototype.emptyFunction
},
{
hover: true
}
);
myModal.open();
Posted September 27th, 2007 at 11:03am byTimTucker
Looking through the posts here, it looks like quite a few people have been looking for a simple way of opening dialogs from a URL without needing to create a link.
Using the following code seems to work (at least in IE 6 and Firefox):
The basic idea being that for basic dialogs the code mostly just looks for the presence of "element.href".
The only exceptions that I've seen are if you use the "hover" or "position = mouse" options.
With that being said, the following will give you a hovering dialog that disappears when the mouse is moved off the dialog:
Posted September 27th, 2007 at 11:03am by TimTucker