Guest DarkDie2k Posted March 24, 2006 Report Share Posted March 24, 2006 Hi,i have a web site to modify and the first conceptor use vbscript to disable text area in body onload ex.:<body onload="Body_onload" STYLE="MARGIN-TOP: 5" text="#006400" link="#0000ff" alink="#ff0000" vlink="#0000ff" background="Images\Erable.jpg">......<script language="vbscript">public flagpublic NASEmployepublic Userpublic Effaceprivate sub Body_onload()flag=<%=flag%>if flag<2 thentxtPasseEmploye.disabled=falsetxtNomEmploye.disabled=truetxtPrenomEmploye.disabled=truecmdRechercher.disabled=truetxtNumClient.disabled=trueTxtNoCertChass.disabled=truetxtPhoneClient.disabled=truetxtNomClient.disabled=truetxtPrenomClient.disabled=truetxtVilleClient.disabled=truelstMemoClient.disabled=truetxtCar.disabled=truecboColor.disabled=truetxtColorCar.disabled=truetxtYearCar.disabled=true......end ifAND when i add a menu in javascript(js) or other kind anywhere in the code i receive an error at the <body ...> line and all the object are enabledso if someone can help me with that problem.Thanks Gab Quote Link to post Share on other sites
bnzenith 0 Posted March 25, 2006 Report Share Posted March 25, 2006 for calling java script function , u have to call it like this<body onload="function Body_onload()" STYLE="MARGIN-TOP: 5" text="#006400" link="#0000ff" alink="#ff0000" vlink="#0000ff" background="Images\Erable.jpg"></body>===========================<script language="javaScript">function Body_onload(){ statement 1 ; statement 2 ; statement 3 ;} Quote Link to post Share on other sites
bd1e0d0 0 Posted March 28, 2006 Report Share Posted March 28, 2006 You can have JavaScript on VBScript on the same page? Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.