how to call function/sub from the image

  • Thread starter Thread starter cw
  • Start date Start date
C

cw

Hi group,
How to call the function from the image click? I'm using the
Img1.attributes.add("onclick", "fnName") to add the onclick attribute. In
the html code, i also set the img1 to run at server. However, when i click
on the image on run time, it gives me the script error by stated that
"fnName" is undefined. Is anyone know how to resolve this?

regards
 
Hi,

The image control hasn't got click event. use the ImageButton instead.

Natty Gur, CTO
Dao2Com Ltd.
28th Baruch Hirsch st. Bnei-Brak
Israel , 51114

Phone Numbers:
Office: +972-(0)3-5786668
Fax: +972-(0)3-5703475
Mobile: +972-(0)58-888377

Know the overall picture
 
Back
Top