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

cfdiv submit form refresh list in other cfdiv

Community Beginner ,
Feb 17, 2013 Feb 17, 2013

Copy link to clipboard

Copied

I have two cfdvs on my page. One has a list and another has a form in it:

<cfdiv name="w1">

  <cfinclude template="list.cfm">

</cfdiv

<cfdiv name="w2">

  <cfinclude template="form.cfm">

</cfdiv

When I submit my form, the result is loaded inside div w2. Now I want to refresh the div with the list too. So I tried this at the end of the page that processes the form:

<script>

    Coldfusion.navigate('list.cfm','w1');

</script>

This didn't work. I get an error:  "... element not found: w1 ...".

Does anyone know how to refresh the list after processing the submitted form data?

TOPICS
Advanced techniques

Views

708

Translate

Translate

Report

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 Expert ,
Feb 23, 2013 Feb 23, 2013

Copy link to clipboard

Copied

LATEST

You are currently using 3 pages. However, you can achieve what you want in two.

list.cfm

blah

blah

blah

form.cfm

<cfdiv name="w1">

  <cfinclude template="list.cfm">

</cfdiv>

<div id="w2" name="w2">

    <cfif isdefined("form.sbmt")>

        <cfdump var="#form#">

    </cfif>

    <!--- make form to submit to its own page, that is, to form.cfm --->

    <cfform>

    <cfinput type="text" name="txt">

    <cfinput type="submit" name="sbmt" value="send">

    </cfform>

</div>

Votes

Translate

Translate

Report

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
Documentation