javascript thread: onClick problem....
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