Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

ColdFusion.Ajax.submitForm & Form not found

Guest
May 20, 2008 May 20, 2008
I am trying to submit a form using ColdFusion.Ajax.submitForm and only get
"Form not found, form id: myform"
-- calling using <a class="save" href="javascript:submitForm()" title="Save this record"><span>Save</span></a>

within
<cfform name="myform"></cform>

there only 1 field
<input type="text" name="PARTICIPATION_FLG" id="input-PARTICIPATION_FLG" value="Y" tabindex="1">
TOPICS
Advanced techniques
1.0K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Deleted User
May 22, 2008 May 22, 2008
solved this issue -- there was a cfform within the cfform via includes on the page.
thanks to all that gave this thought!!
Translate
LEGEND ,
May 20, 2008 May 20, 2008
torstenp wrote:
> I am trying to submit a form using ColdFusion.Ajax.submitForm and only get
> "Form not found, form id: myform"
> -- calling using <a class="save" href="javascript:submitForm()" title="Save
> this record"><span>Save</span></a>
>
> within
> <cfform name="myform"></cform>
>
> there only 1 field
> <input type="text" name="PARTICIPATION_FLG" id="input-PARTICIPATION_FLG"
> value="Y" tabindex="1">
>

You may need to set the id of the form as well as it's name. Give this
a try.

<cfform id="myform" name="myhform">...
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 20, 2008 May 20, 2008
what does your submitForm() js function look like?

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
May 22, 2008 May 22, 2008
i had actually had both the name="myform" and id="myform" (i assume that is a typo and you dont mean 2 seperate names) --
the submitForm() function is
function submitForm() {
ColdFusion.Ajax.submitForm('myform', 'listing.cfc?method=setAgreement', callback, errorHandler);
}
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
May 22, 2008 May 22, 2008
LATEST
solved this issue -- there was a cfform within the cfform via includes on the page.
thanks to all that gave this thought!!
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources