cfform inside a cfdiv submit?
Hi All-
I currently have a .cfm file that has the following code:
<cfdiv bind="url:/homePageIncludes/homePageTabs.cfm?tab={tabtype}" bindonload="true" id="tabView"/>
... which seems to work fine, it calls homePageTabs.cfm which has a cfform on it. I want the cfform on this page to submit to itself without refreshing the page (which it appears to do).
My cfform code looks like this:
<cfform name="formTabs" method="post" action="/">
... and on my homePageTabs.cfm page I'm doing a cfdump to get the submitted form values but it keeps coming back empty. I need to be able to see the submit values as I have logic to build and display pages. I can see the form submitting without the entire page refreshing (exactly what I want) but can't seem to trap any values from the form submission.
When submitting a cfform to itself inside of a cfdiv, what exact values should I use for the action attribute? I'm assuming the method should be "post" and the docs said to give the form a unique name from the rest of the objects on the page. The various javascript functions (Coldfusion.ajax.submitform and coldfusion.navigate) did not work - the form simply did not submit at all, not even a flinch. This code is on ColdFusion 8 and there are lots of posts about this but none seem to reveal those specifics about the cfform tag's attributes.
Anyone?
Thanks in advance,
Rich
