Faded backgrounds while showing JS alerts
Hello.
I'm wondering if this is the best/correct way to "grey out" the background of my app while a JS alert/confirm box is shown.
Here's what I have come up with:
function btnDelete_OnClick()
{
$('#divAppContainer').fadeTo(100,0.33);
window.setTimeout("ConfirmDelete();",200);
}
I had some issues with calling ConfirmDelete() in the Callback of the fadeTo function so opted for this method instead.
Although this works, I wouldn't mind some input on if there is a better way... I'm new to JQuery and don't want to start out on the wrong foot.
Cheers,
Ben