T
Tony Girgenti
Hello.
I just finished reading two articles about javascript here:
http://msdn2.microsoft.com/en-us/library/bb332123(VS.80).aspx
I tried some javascript testing in VS2005, SP1, VB , .NET 2.0, ASP.NET 2.0
on WIN XP Pro, SP2.
It's real simple. I put a button on a page and coded the onClick in it like
this:
<asp:Button ID="Button1" runat="server" Style="z-index: 103; left: 528px;
position: absolute; top: 392px" Text="Button" OnClick="ShowCal" />
Here is the function:
<script type="text/javascript" language="javascript">
function ShowCal() {
var x = Button1.Style.z - index;
alert(x);
}
</script>
It won't let me run the program saying "'ShowCal' is not a member of
'ASP.default_aspx'"
If javascript is so popular, why can't i use it?
Any help would be gratefully appreciated.
Thanks,
Tony
I just finished reading two articles about javascript here:
http://msdn2.microsoft.com/en-us/library/bb332123(VS.80).aspx
I tried some javascript testing in VS2005, SP1, VB , .NET 2.0, ASP.NET 2.0
on WIN XP Pro, SP2.
It's real simple. I put a button on a page and coded the onClick in it like
this:
<asp:Button ID="Button1" runat="server" Style="z-index: 103; left: 528px;
position: absolute; top: 392px" Text="Button" OnClick="ShowCal" />
Here is the function:
<script type="text/javascript" language="javascript">
function ShowCal() {
var x = Button1.Style.z - index;
alert(x);
}
</script>
It won't let me run the program saying "'ShowCal' is not a member of
'ASP.default_aspx'"
If javascript is so popular, why can't i use it?
Any help would be gratefully appreciated.
Thanks,
Tony