home *** CD-ROM | disk | FTP | other *** search
/ Australian Personal Computer 1999 April / APC443.iso / features / grpware / coldfus / coldfusi.exe / data1.cab / Documentation / snippets / cfsetting.cfm < prev    next >
Encoding:
Text File  |  1998-10-08  |  1.2 KB  |  45 lines

  1. <!--- This example shows the use of CFSETTING --->
  2. <HTML>
  3. <HEAD>
  4. <TITLE>CFSETTING Example</TITLE>
  5. </HEAD>
  6.  
  7. <BODY bgcolor="silver">
  8. <H3>CFSETTING Example</H3>
  9. <P>
  10. CFSETTING is used to control the output of HTML code in your
  11. Cold Fusion pages.  This tag can be used to minimize the amount
  12. of generated whitespace in your templates.
  13.  
  14. <!---
  15. This example requires an additional step because the entire frameset
  16. is wrapped in a CFOUTPUT tag (which causes all text to
  17. be displayed). --->
  18.  
  19. <CFIF IsDefined("url.run")>
  20.   <P>
  21.   Compare the page display with the view example pane
  22.   to see the text that has been supressed.
  23.   <CFSETTING ENABLECFOUTPUTONLY="Yes">
  24.     <P>This text is not shown
  25.   <CFSETTING ENABLECFOUTPUTONLY="No">
  26.     <P>This text is shown
  27.   <CFSETTING ENABLECFOUTPUTONLY="Yes">
  28.   <CFOUTPUT>
  29.     <P>Text within CFOUTPUT is always shown
  30.   </CFOUTPUT>    
  31.   <CFSETTING ENABLECFOUTPUTONLY="No">
  32.   <CFOUTPUT>
  33.     <P>Text within CFOUTPUT is always shown
  34.   </CFOUTPUT>    
  35. <CFELSE>
  36.   <P>Click the Display Output button to view the page.
  37.  
  38.   <FORM ACTION="./cfsetting.cfm?run=yes" METHOD="POST">
  39.     <input type="submit" VALUE="Display Output">
  40.   </form>
  41. </CFIF>
  42.  
  43. </BODY>
  44. </HTML>       
  45.