I have a page on which i create a dynamic div popup with a disabled background after the page loads.
document.observe('dom:loaded', function() {
Create DIV POPUP and DISPLAY IT.
});
I had to do this because in IE if i dont execute the script after the dom loads, the popup shows up but the background has no content (Nothing has loaded).
Beside this i have used an observer for page content to invoke a script for some elements for example :
document.observe('dom:loaded', function() {
$$('a').invoke('observe', 'focus', function(event) {
alert("Hi There");
});
means on focus it displays a message. , everything works perfect for elements my problem is : The invoker doesnt work for elements which are inside the dynamic div popup , i guess it doesnt recognize them since both loads after the dom.
I hope you guys can help!