- window.addEvent('domready', function() {
- SqueezeBox.initialize({ size: { x: 350, y: 500}});
- $$('a.modal').each(function(el) {
- el.addEvent('click', function(e) {
- new Event(e).stop();
- SqueezeBox.fromElement(el);
- });
- });
- });
I'm working with joomla 1.5 and mootools 1.1 - I don't have the option to upgrade to 1.2 .
I'm trying to make a modal window (dim the background of the browser window and show a popup with some info in it).
For this purpose I have added the following code to the head:
in my body I have a div
- <div><a class="modal">link</a></div>
everything works perfect! But there is a problem. The content in the div can be loaded dynamically. I have page browser that makes an ajax request and delivers new content in the div. When I go to page 2, then I have
- <div><a class="modal">link page2</a></div>
and the modal window doesn't function anymore. Is there any way to tell the dom to look for changes?


