Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating a modal window
Message
From
23/08/2006 07:19:21
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Creating a modal window
Miscellaneous
Thread ID:
01147825
Message ID:
01147825
Views:
69
Hi,

I'm trying to create a modal calendar picker form which will be called from another form.

To make the form modal, I'm trying to put the following in the body tag:
<body onblur="this.widow.focus();">
However, Visual Studio 2005 gives me the following error:

Validation (XHTML 1.0 Transitional):
Attribute 'onblur' is not a valid attribute of element 'body'.

This method of making the form/window modal definitely works in classic ASP and I've seen literally hundreds of examples for ASP.Net using this method.

Anyone any idea where I'm going wrong?

There's an example of what I'm trying to do here:

http://www.15seconds.com/issue/040315.htm

An example of a working modal window is here:

http://codepunk.hardwar.org.uk/ajs04.htm

Thanks.

Matt.
Next
Reply
Map
View

Click here to load this message in the networking platform