Displaying query results under the active <cflayoutearea> tab

Posted on 2011-04-22
Medium Priority
Last Modified: 2012-05-11
Hello. I am developing a coldfusion website where everything functions under tabs ie. <cflayout area>. The first tab is the home page with just informational items on it. The second tab displays a list of links that allows the user to click and generate query results in a table form to a new browser window.

Is it possible to generate the query results within the active tab instead of to a new browser window? It would be ideal to allow the user to stay within the tab? I can provide my current code if neccessary. Thanks in advance.
Question by:jslaught
  • 2
  • 2
LVL 39

Accepted Solution

gdemaria earned 250 total points
ID: 35448382
> results within the active tab instead of to a new browser window? It would be ideal to allow the user to stay within the tab? I can provide my current code if neccessary

it's not a big deal at all, just use CFFORM when you post your form and it will stay within the tab automatically, it's that easy...


Author Comment

ID: 35448846
tried <cfform> by adding it to the my code under a tab (cflayoutarea) on the web page when a link is clicked. The link still generates a new browser window. I guess i'm not doing <cfform >the right way in this case. Here is an excerpt of my code. Any other suggestions? Thanks.

<cfform action="http://machinename.domain.net:8500/tt/tsr.cfm" method="post">

<font size=4><left><bb><a href="http://machinename.domain.net:8500/tt/tsr.cfm">My Service Requests</b></a></font><br>
<font size=2>All Service Requests Opened/Resolved assigned to me</font>

Open in new window


Author Closing Comment

ID: 35457662
I decided to not pursue this answer any further. I was able to do a workaround in my development for what I needed to do.
LVL 39

Expert Comment

ID: 35457674
Sorry I didn't see your previous post.  

For future reference... the CFFORM didn't work because you are not submitting the form.   Using a link has nothing to do with CFFORM (or <form> for that matter).   You don't need the form at all to use a link, they are not related.     You want to SUBMIT the form using the <input type="submit" ....>   tag, then the form will refresh within the CFwindow, CFdiv, CFlayout, etc..


Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article  is about submitting  form through  ColdFusion.Ajax.submitForm to the action page and send a response back in JSON format which later can be decoded using ColdFusion.JSON.decode. By this way you can avoid the usual page refresh for subm…
PROBLEM:  How to open a cfwindow or run a function on double click of a cfgrid row. One of my clients wanted to be able to double click on a row item to get more detailed information about a transaction and to be able to modify the line items i…
Loops Section Overview
Screencast - Getting to Know the Pipeline
Suggested Courses

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question