View Single Post
  #2 (permalink)  
Old April 17th, 2006, 07:55 PM
bnews987 bnews987 is offline
Wrox Author
Points: 333, Level: 6
Points: 333, Level: 6 Points: 333, Level: 6 Points: 333, Level: 6
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2006
Location: , , .
Posts: 91
Thanks: 0
Thanked 5 Times in 5 Posts
Default

You can use Javascript as you have written, but you need to change one line to set the correct language in that case.

        <script language="Javascript" type="text/Javascript">


Or you can make the 2 changes below to use VBScript. Replace your code with this code that is VBScript.

**** 1 START ******
<script language="VBscript" type="text/VBscript">
Sub btnClient_onclick()
  document.getElementById("lblclient").innerText = "Changed"
  document.getElementById("lblServer").innerText = "Server"
End Sub
</script>
**** 1 END ******


**** 2 START ******
<input id="btnClient" style="z-index: 103; left: 72px; position: absolute; top: 176px" type="button" value="Client" onclick="btnClient_onclick()" />
**** 2 END ******

Hope this helps,

Bryan