Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
After a function call...
Message
From
19/07/2007 00:56:02
 
 
To
18/07/2007 15:15:51
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01240882
Message ID:
01241781
Views:
22
>Thanks John.
>
>Another question if you can.
>
>I have a HTML header (th) code like this:
>
><th bgcolor="#b0c4de"><b><IMG SRC="up.gif" onClick =SORTLIST("1") style="cursor:hand"><IMG SRC="down.gif" style="cursor:hand"><br> Description </IMG></b></th>
>
>
>It displays fine but when I click the "Up.gif" or the "Down.gif" I want to call a function called SORTLIST(), which is written with VBScript.
>The ways I've tried to call it doesn't work. What is the correct way to call this function?
>
>TIA
>

I'm assuming this is client side.

I don't do a lot of HTML, but I'm pretty sure the syntax needs to be:
onclick='SORTLIST("1")'
Note the quotes, most HTML attributes require a string.

BTW I strongly recommend writing client side scripts in JavaScript, last I heard VBScript was only supported in IE.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform