COntrol.Modal giving it an ID

Anyone know how to achieve this .... ive been using the following code


function modalWindow(url,width,height) {
var _id="modal_"+(new Date().getTime());
var m = new Control.Modal(false,_id,{
        opacity: 0.7,
        width: width,
        height: height,
        iframe: true,
        overlayCloseOnClick:true
    });
var random_string=new Date().getTime();
m.href=url+'&rand;='+random_string;
m.open();
}

But it doesnt want to work .... i really need an id with it

Thanks in advance

Jester

Posted September 7th, 2007 at 9:58am by jester

Login or Register to Post