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

ColdFusion.navigate POST v GET in CF8

Participant ,
May 14, 2010 May 14, 2010

Hi there,

Simple problem hopefully in need of a simple solution.

I have a page with a single CFDIV bound to a text field. Within that CFDIV is a form which, when submitted, should submit to and then refresh the parent page. I am using ColdFusion.navigate to accomplish this. The problem is that, when it submits the form, it seems to be doing it via GET (the form values all appear in the URL) rather than POST, even though I've specified POST in ColdFusion.navigate.

Parent page:

--------------------------

<cfform action="board-update.cfm" method="post">
  
    <p>Name:
        <cfinput type="text" name="nameText" size="15" maxlength="30" />
    </p>

</cfform>

<cfdiv bind="url:board-add.cfm?nameText={nameText@keyup}"></cfdiv>

board-add.cfm's <cfform> tag:

<cfform action="" id="addForm" "javascript:ColdFusion.navigate('board-update.cfm', null, null, null, 'POST', 'addForm');">

The form processor is on the parent page and is looking for variables in the FORM scope (i.e. POSTed to the page).

What am I doing wrong?

2.9K
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
Community Beginner ,
Jan 11, 2013 Jan 11, 2013

did you ever find a solution to this?  i am having the same problem

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
Participant ,
Jan 13, 2013 Jan 13, 2013

No. CFDIV has given me so many problems with stuff like this (and now quite old AJAX libraries) that I just don't use it anymore.

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
New Here ,
Jul 26, 2013 Jul 26, 2013
LATEST

Suggestion: Place an 'id' value on your CFFORM tag. Use that 'id' value name as the last section of your coldfusion navigate command instead of the current value 'addForm'. Also - you can remove the action="xxx.cfm" from your CFFORM tag. (only have CFFORM id="xxxx" if you are using coldfusion navigate)

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