Hello I am sorry if this is a really novice question, but I am virtually clueless when it comes to Javascript. I have a page that is running the "leightbox" script. I have modified the script as per a suggestion on Quaint Tech so the lightbox will appear on the page load (when required). The script works great in FireFox and Safari. Clicking on a link will pull up the lightbox as it should in IE. However when I click the link that is supposed to refresh the page and pull up the lightbox on the page load I am receiving a "Object Required" error in IE. Here is the relevant code
IE is reporting the error on the following line
(line 14 in the above code.)
I am calling the the following function to pull up the lightbox onload
Any Suggestions. I thank you all in advance.
Dan
Code:
initialize: function(ctrl) {
if(ctrl) {
this.content = ctrl.rel;
Event.observe(ctrl, 'click', this.activate.bindAsEventListener(this), false);
ctrl.onclick = function(){return false;};
}
},
initCallable: function(rel) {
this.content = rel;
},
displayLightbox: function(display){
$('overlay').style.display = display;
$(this.content).style.display = display;
if(display != 'none') this.actions();
},
Code:
$(this.content).style.display = display;
I am calling the the following function to pull up the lightbox onload
Code:
lb = new lightbox();
lb.initCallable('lightbox4');
lb.activate();
Dan
Comment