Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Seting Focus
Message
 
À
30/11/2004 14:47:05
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Versions des environnements
Environment:
ASP.NET
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
00965810
Message ID:
00965874
Vues:
10
>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

Bill;

Try this:
< BODY onLoad="document.expando="true";SetFocus();"> 
Tom
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform