[thelist] Cold Fusion - using onClick to submit a form with hidden fields
William Kolean
williamkolean at mac.com
Mon Dec 17 10:08:45 CST 2001
Joshua,
You were right about having an element named submit - I still had the
original submit button in the form and that was what was causing me
problems - once I removed it everything started working.
<tip type="Lynx for MacOS X" author="William">
If you're on Mac OS X and would like to see what your web site looks
like in a text-only browser you can download Lynx as a Mac OSX package
from Apple at:
<wrap>
http://www.apple.com/downloads/macosx/unix_apps_utilities/lynxwebbrowser.html
</wrap>
Run the installer and then open a terminal window and type "lynx"
(without the quotes) to launch the Lynx browser. To visit a URL type "g"
and then type the URL. After you visit a few web sites with Lynx you'll
really begin to appreciate how annoying alt="spacer.gif" can be.
</tip>
William
> From: "Joshua Olson" <joshua at alphashop.net>
> To: <thelist at lists.evolt.org>
> Subject: Re: [thelist] Cold Fusion - using onClick to submit a form
> with hidden fields
> Date: Thu, 13 Dec 2001 12:42:18 -0500
> charset="iso-8859-1"
> Reply-To: thelist at lists.evolt.org
>
> William,
>
> Question 1: Do you have an element named submit, by chance? If, so,
> that'll mess you up every time when you are trying to do something like
> this.
>
> Your best bet to manually submit a form is to use the full DOM name of
> the
> form, such as:
>
> document.forms.myform.submit();
>
> add a name="myform" and id="myform" to the form tag.
>
> The hidden form fields should have absolutely no effect so long as the
> names
> of the fields are not reserved words, such as "submit", etc.
>
> HTH,
>
> -joshua
>
>
> ----- Original Message -----
> From: "William Kolean" <williamkolean at mac.com>
> Subject: [thelist] Cold Fusion - using onClick to submit a form with
> hidden
> fields
>
>
> : I am having trouble using onClick in an href to execute JavaScript
> code
> and
> : then submit a form using Cold Fusion 4.5. It works fine until I add
> hidden
> : form fields, and then I get a JavaScript "Object doesn't support this
> : property or method" error. After doing a google search I found a
> partial
> : solution using <a href="javascript.eventInput.submit()"
> : onClick="updateParentID()">Update</a>, however this only works if the
> href
> : is outside of the form tags. Does anyone have any idea how I could
> modify
> : this to work when it is placed inside the form tags?
> :
> : William
> : williamkolean at mac.com
>
>
>
More information about the thelist
mailing list