Guest DarkDie2k Posted March 24, 2006 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 Link to comment Share on other sites More sharing options...
bnzenith Posted March 25, 2006 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 ;} Link to comment Share on other sites More sharing options...
bd1e0d0 Posted March 28, 2006 Share Posted March 28, 2006 You can have JavaScript on VBScript on the same page? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now