Displaying query results under the active <cflayoutearea> tab

Posted on 2011-04-22
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
    LVL 39

    Accepted Solution

    > 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

    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="" method="post">
    <font size=4><left><bb><a href="">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

    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

    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..


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    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…
    Recently while working on a project I got a very annoying cfdocument has no body error message. I had never seen this error before. So I checked the code. The code was pretty simple; it was Just showing me the cfdocumnt tag and inside that tag a …
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    794 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

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now