Accessing Control.Modal elements using Prototype

Hi all, I have been using Dan Webb's lowpro in conjunction with control.modal and I have run into a few problems. The main problem I am seeing is that the elements which get passed in to create a new Control.Modal are not accessible by prototype afterwards. So if I create a control modal in a div called 'foo' and I can not then select it using Prototype's element selector: $('foo'). This becomes a problem because lowpro is unable to observer the events that go on inside of the modal boxes.

Is there an easy way around this that I am missing? Or is control.modal and lowpro not a good combination? Any help or suggestions would be appreciated. I would be really interested in hearing from anyone who has used control.modal a lot with lowpro. Thanks,

Ben

Posted December 4th, 2007 at 5:12pm by bmabey

new Control.Modal(element, {
    contents:'',
    afterOpen:function(){
       alert(Object.isElement($('foo')));
    }
});

works...

Posted December 5th, 2007 at 7:14am by Roland

contents:'<div id="foo" />',

Posted December 5th, 2007 at 7:17am by Roland

Login or Register to Post