Skip navigation
Currently Being Moderated

Trying to get CFFORM to submit to a different CFDIV - it's not working

Oct 1, 2012 11:39 AM

Hello, everyone.

 

I have three CFDIVs in a .cfm document - one thin one across the top that contains a CFFORM, and two below it (one on left, one on right).  The lower-left binds on load and displays data from a query.  What I'm trying to do is have the CFFORM submit to the lower-left CFDIV and requery using whatever filter was selected in the CFFORM CFSELECT tag (All orders, Open orders, Working orders, Closed orders.)

 

I set the TARGET attribute of the CFFORM to the name of the lower-left CFDIV, and it just opens a new window when submit.

 

I've never worked with these elements, before.  What is the proper way to do what I'm trying to do?

 

I cannot copy/paste code, here, but I will try to manually type what I have, so far.

 

index.cfm:

 

<cfdiv tagName="div" ID="filterForm">
  <cfform target="navLayer" method="post" name="jobsFilter" format="html" id="jobsFilter">
    <cfselect visible="yes" name="status" id="status" query="statusTypes" value="NAME" display="NAME" queryposition="below" onchange="submitForm()">
      <option value="OPEN,WORKING,CLOSED">All</option>
    </cfselect>
  </cfform>
</cfdiv>
<cfdiv tagName="div" ID="navLayer" bind="url:jobslist.cfm" bindOnLoad="yes"></cfdiv>
<cfdiv tagName="div" ID="displayLayer" bind="url:jobs.cfm" bindOnLoad="no"></cfdiv>

I greatly appreciate any advice on this issue.

 

Thank you,

 

^_^

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points