Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Seting Focus
Message
From
30/11/2004 14:47:05
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Seting Focus
Environment versions
Environment:
ASP.NET
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
00965810
Message ID:
00965810
Views:
40
When our ASP.NET forms load we programmatically create a javascript function ( SetFocus() ) that we load into the HTML using RegisterClientScriptBlock(). In the ASP.NET form we have a call to this function in the onload of the body tag
<BODY onload="javascript:SetFocus();" ...>
which has worked well up to now.

However, (sigh, I hate third party controls) we are using a third party menu control that apparently writes an onload directive also
<BODY onload="document.expando="true" ... >
Which, of course, is overriding my call to my SetFocus() function.

Is there any way to work around this situation so I can still programmatically set up and call my SetFocus() function when the form loads in spite of the onload modification by the third party control?

Many thanks,
Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Next
Reply
Map
View

Click here to load this message in the networking platform