Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
After a function call...
Message
De
19/07/2007 00:56:02
 
 
À
18/07/2007 15:15:51
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01240882
Message ID:
01241781
Vues:
24
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform