controlling an overlay via a handle?

controlling an overlay via a handle?

Hi everyone.

Longtime Javascripter taking his lumps on JQuery :D

I grabbed an overlay routine from flowplayer and got that working (though I don't quite know how) 

then I got ambitious and added another dialog (duplicating their code) and bound it to a button.  Works fine.

Then I wanted to reuse the first dialog in an exception case during a function triggered by my new button...   snafu time

My second dialog triggers an overlay, then the first dialog triggers it's own overlay. 

I want to know if there's a way to get a handle for the overlays and control them via scripting as objects (cancel them or close them individually).

AND/OR...  is there a way to call an overlay on the fly (not bind it to a button or event) ?

Thanks for any tips.  



Here's the flowplayer code for reference:



var triggers = $("img.modalInput").overlay(
{

// some expose tweaks suitabCancelle for modal dialogs
expose: {
color: '#1e3871',
loadSpeed: 100,
opacity: 0.96
},

closeOnClick: false

}

);

$("#prompt form").submit(function(e) {

// close the overlay
triggers.eq(1).overlay().close();

// get user input
//var input = $("input", email).val();

//alert(input);
// do something with the answer
//triggers.eq(1).html(input);

// do not submit the form
//return e.preventDefault();
});


    • Topic Participants

    • paul