Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
did you ever find a solution to this? i am having the same problem
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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)
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more