javascript help

  • Thread starter Thread starter Paul C
  • Start date Start date
P

Paul C

Hi
I want to add an onchange event to a form field (dropdown box) so the form
is submited when an selection is made I wish to leave out the submit button
how is this done
Many thanks
Paul M
 
By doing this, you make your form unusable if the visitor doesn't have
javascript enabled. Do you want to do that?
 
Thanks Murray
But surely no one has javascript disabled these days, half of the sites in
the world rely on Don't they?

Is there a way of checking for javascript then if it is disabled generate a
submit button or is this silly?
The problem I am having is a person can change the dropdown and not submit
the form then presume that they are emailing the name in the dropdown
see what I mean
http://www.gbwr.co.uk/gbwr_contact.asp

Best wishes

Paul M
 
That's probably right, I usually rely on javascript being enabled. If you
wanted to cover all bases you could do
<noscript><input type="submit" value="submit form"></noscript>
to generate a s submit button for non js users
 
Thanks Jon
Could I use an image button, is this the correct way to do this?

Paul M

<noscript><INPUT name="IMAGE2" TYPE="IMAGE"
src="PageImages/index/find-button.gif" width="39" height="14" border="0"
img></noscript>
 
You will need to move the drop down to be the last field on the form for this tow work well, also
this may not work for users of alternative web browser that don't use a mouse, etc.

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================
 
I rarely use js on my sites. And the word I see is that 5-10% of surfers
are surfing with js disabled. However, Jon has the best solution....
 
Back
Top