Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: onClick problem....


Message #1 by "Maurice Faber" <mrdata@i...> on Mon, 11 Jun 2001 17:06:19 +0200
Not sure why you think you have to read and concatenate the forms values
into the action of the form...

you can just do this

<a href="javascript:document.forms(0).submit()"><img src="..."></a>

Obviously if you want to do some validation before submitting the form you
can call a function from the link instead.


-----Original Message-----
From: Maurice Faber [mailto:mrdata@i...]
Sent: 11 June 2001 16:06
To: javascript
Subject: [javascript] onClick problem....


it seems that input type image does not support the 'onClick' handler in NN
4.77. they seem to force u 2 use buttons instead of images for submitting
forms. UGLY!

I thought a way around this problem by hreffing the image and putting the
onClick handler there. Only problem is I have 2 read and concatenate the
forms values into the action of the form. This is a lot of work. Does
anybody know of a quicker way around this?
________________________________________________________________________
Scottish Enterprise Network
http://www.scottish-enterprise.com

  Return to Index