Ok..
fixed...
what it was ... was...

i'm in an artsy fartsy design agency, where I'm not allowed to design
stuff, just make it 'work'... so I had an HTML/CSS page all perfect
looking... but the designer had coded his form with teh submit button
to have the NAME submit..

so my Javascript was talking to that.. so I've renamed it to submitIt...
and all is well in the universe again...

Thanks for all the brain power though guys...
you rock!


On 30/01/07, David Precious <[EMAIL PROTECTED]> wrote:
On Tue, 30 Jan 2007, Tris wrote:
> I've got a form.. (a form!) that s giving me grief..
> I want the form to self submit when I change a SE:ECT option.
> all good, javascript etc... Buuuut...
>
> top of my form:
> <form id="bookingForm" name="bookingForm" method="post"
> action="<?=$_SERVER['REQUEST_URI']?>">
>
>
> and further down..
> <select name="departure" id="departure"
> onChange="document.forms['bookingForm'].submit(); return true;">
>
> i've tried using this:
> this.form.submit();


try onchange="document.bookingForm.submit()"

Alternatively, parent.submit() *might* work, dunno though.

Don't know why this.form.submit() didn't work, I think it should.

You should be able to remove the return true off the end of the onchange,
I don't think it's needed.

Cheers

Dave P


____ � The WDVL Discussion List from WDVL.COM � ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] or
use the web interface http://e-newsletters.internet.com/discussionlists.html/
      Send Your Posts To: [email protected]
To change subscription settings, add a password or view the web interface:
http://intm-dl.sparklist.com/read/?forum=wdvltalk

________________  http://www.wdvl.com  _______________________

You are currently subscribed to wdvltalk as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016

Please include the email address which you have been contacted with.

Reply via email to