custom alert control

lamy

Regular
Joined
Dec 12, 2005
Messages
56
Location
under your bed
i made a custom alert control (vwd express 2005) out of this, http://slayeroffice.com/code/custom_alert/, i did some alteration on css to support IE browsers without position:fixed, and took off the mispelled (dunno if intensionally) visibility property (no use for this, fixing it wouldnt show the alert)

now, my question is this, popping the alert after postback would cause an exception, but it can be resolved by using setTimeout (in js), so i added it, but in some cases where the page would load longer than expected i end up with this error.

"Internet Explorer cannot open the Internet site http://localhost:2220/alert/default.aspx
Operation aborted"

then with a "Cannot find server - The page cannot be displayed"

it seems that RegisterClientScriptBlock is called too soon, is there a way to place it at the end of the file, somewhat

Code:
</html>
<script language="javascript">
alert("here");
</script>

anyone?
 

Attachments

Last edited:
Back
Top