Keep application.cfm include from displaying

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default Keep application.cfm include from displaying

    Hi All, I have a application.cfm file that puts a header menu at the top of
    every page. the problem that I am having is when I call a popup window the
    header displays as well. Is there a way to prevent this from happening??

    thanks in advance

    maurice


    EdmondsM Guest

  2. Similar Questions and Discussions

    1. Displaying the full version of AcrobatStandard within another application
      We are developing a document management application where users can edit documents within the application. Ideally, we would like to display Acrobat...
    2. Displaying Static Image of a page in an application
      Hi All, Ultimately I'd like to design an app which displays a PDF, however I only really need a static image of the page... no toolbars, etc... ...
    3. Displaying a jsp file using mxml application
      Hi, i need to display a jsp, file when a click event is fired in mxml application. i know it can be done using getURL("abc.jsp"); other than...
    4. Newbie: How to Include HTML Help in Flex Application
      I have an HTML Help compiled help file (.CHM format) I created using Microsoft HTML Help Workshop. I asked my Flex developer to add a Help button...
    5. Global variables - application variables vs include file
      What are the best methods for using global constants and variables? I've noticed that many people put all global constants in a file and include...
  3. #2

    Default Re: Keep application.cfm include from displaying

    You shouldn't really have visual elements in your Application.cfm, but you can
    achieve what you want.

    Either, put the template for the pop-up in it's on folder with it's own
    Application.cfm.

    Or

    Make the pop-up a .html file.

    Or

    Use this combination of functions to test if it the Pop-Up:-

    <cfif GetFileFromPath(GetBaseTemplatePath()) IS NOT "myPopUp.cfm">
    <cfinclude template="myNavigation.cfm">
    </cfif>

    Stressed_Simon Guest

  4. #3

    Default Re: Keep application.cfm include from displaying

    Hi Simon, where is the best place to put visual elements if you want them to display on everypage??
    EdmondsM Guest

  5. #4

    Default Re: Keep application.cfm include from displaying

    I normally create a Dreamweaver Template, and use cfincludes in that. Then, if
    I need to create pages that don't need these, then I don't have to muck about
    with my logic to get it to work.

    Does that make sense?

    Stressed_Simon Guest

  6. #5

    Default Re: Keep application.cfm include from displaying

    ok, that makes alot of since. I have a templete already, so I can just add it to the top of every page instead of using the application.cfm to display it on every page.


    EdmondsM Guest

  7. #6

    Default Re: Keep application.cfm include from displaying

    That's right. Really try and keep visual elements out of Application.cfm and OnRequestEnd.cfm, this also goes for the Appliction.cfc in CFMX7.
    Stressed_Simon Guest

  8. #7

    Default Re: Keep application.cfm include from displaying

    Thanks Simon. I will make a mental note of that one. Since you mention application cfc.....is it true that in MX7 it is better to use application.cfc rather than application.cfm.
    EdmondsM Guest

  9. #8

    Default Re: Keep application.cfm include from displaying

    It depends by what you mean by better? There is functionality that you can only
    achieve with an Application.cfc, and if you are familiar with the use of
    components then I would suggest it is the way to go. Also Application.cfm is
    only supported in CFMX7 for backwards-compatibility reasons. However, in a
    simple application you can get all you need from Application.cfm and
    OnRequestEnd.cfm.

    So in summary I would go the Application.cfc route if it is available to you
    and you are comfortable with the execution, but be careful with the methods
    that are executed outside of page requests as they are a swine to debug!!!!

    Stressed_Simon Guest

  10. #9

    Default Re: Keep application.cfm include from displaying

    Thanks dude for your guidence. I will once again make a note of this.
    EdmondsM Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139