Umm..
I tried that..a new name and stuff.

<input name="Deletebutton" type="button" value="Add More"
onclick="document.Timeentry_billable.action='timeentry_deletechargeinfo.
cfm';document.Timeentry_billable.submit();" class="buttons">

And I still get that same exact error. It is driving me nuts..I can't
understand! :-\

-Gel

-----Original Message-----
From: Craig [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, November 13, 2001 6:27 PM
To: CF-Talk
Subject: Re: More OT Javascript: Dual Submit Buttons on One Form.


I get that all of the time.  Name your submit button something else.  I
think it has a default name as submit, so when you call the submit
method:

document.Timeentry_billable.submit();

It thinks you are referring to the submit button, not the form's method.

so you need something like:

<input type="submit" name="MyDeleteButton" value="delete" >

-Craig

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to