>can you post your code? as usual, it can be a million different things 
>at play here...
ok, streamline them into two bare minimal:

TopLevel:

<cfajaximport tags="cflayout-tab,cfform,CFDIV,CFINPUT-AUTOSUGGEST,cftooltip">

<html xmlns="http://www.w3.org/1999/xhtml";>
<head>
<title>bla bla app</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="keywords" content="bla bla app">
<script language="javascript">
  function getInternetExplorerVersion()
  // Returns the version of Internet Explorer or a -1
  // (indicating the use of another browser).
  {
  var rv = -1; // Return value assumes failure.
  if (navigator.appName == 'Microsoft Internet Explorer')
  {
    var ua = navigator.userAgent;
    var re  = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
    if (re.exec(ua) != null)
      rv = parseFloat( RegExp.$1 );
  }
  return rv;
  }
        
  function checkVersion()
  {
    var msg = "";
    var ver = getInternetExplorerVersion();
  
    if ( ver > -1 )
    { 
      if ( ver < 7)
                          {
        msg = "We strongly recommend using Internet Explorer Version 7 for this 
particular application.";
        alert( msg );
                                }
                }
   else {
           msg = "We strongly recommend using Internet Explorer Version 7 for 
this particular application.";
                 alert( msg );
         }
  }
 
        function addBR(n) {    
                document.getElementById(n).value = 
document.getElementById(n).value + '<br>\n\r'; 
        }               
        function increaseRows(n){   
         // alert(n);  
         document.getElementById(n).rows += 10; 
        }       
        function decreaseRows(n){    
                document.getElementById(n).rows -= 5; 
        }       
        function increaseCols(n){   
         // alert(n);  
         document.getElementById(n).cols += 5; 
        }       
        function decreaseCols(n){    
                document.getElementById(n).cols -= 5; 
        }               
</script>
</head>
<body onload="checkVersion()">
<h1 title="bla bla app">bla bla app</h1>
<table>
<tr>
  <td width="65%" align="top">  
        <cfset session.myAppCal = 0>
        <cfparam name="session.myAppUserID" default="">
        <cfwindow name="CoreApp"
                                        title="bla bla app"
                                        source="../myAppDir/index.cfm"
                                        closable="false"
                                        initShow="true"
                                        width="755"
                                        height="566"
                                        x=240
                                        y=40/>                                  
                
  </td>
</tr>
</table>

</body>
</html>

-----------

SecondLevel:
<CFPROCESSINGDIRECTIVE SUPPRESSWHITESPACE="Yes">
  <!-- floating calendar window -->
  <cfif ...>
                        <table summary="flowing calendar window" align="right">
                        <tr><td colspan="2">    
                                        <cfwindow title=" Calendar"
                                          source="FlowingCalendar.cfm"          
                        
                                        closable="true"
                                        initShow="true"
                                        width="225"
                                        height="140"
                                        x=620
                                        y=15/>   
                        </td></tr>
                        </table>        
        </cfif>
        
        <cflayout type="tab">
          <cflayoutarea title=" " style="width:5" />            
                <cfif user session... >
        <cflayoutarea title="Logout" source="logout.cfm"/>
      <cfelse> 
        <cflayoutarea title="Login">     
                <table summary="login section"> 
           <tr>
                <td colspan="2">
                                          <cfform ... for login>
                                                </cform>
                </td>
                        </tr>           
          </table> 
        </cflayoutarea>  
         </cfif>
                 
         <cfparam name="iHide" default="true">   
     <cfif user session ...>
                                <cfset iHide = "true">
                                <cfset s = "false">
     <cfelse>
                        <cfset iHide = "false">
                                <cfset s = "true">
     </cfif>    
     <cflayoutarea title="start" selected="#s#" initHide="#iHide#">
                 ...
         </cflayoutarea>
                        
        <cfparam name="uState" default="false">
        <cfif user session ...>
          <cfset uState="true">
                <cfset iHide = "false">
        <cfelse>
          <cfset uState="false">
                <cfset iHide = "true">
        </cfif>

        <!-- the core of the app -->
        <cflayoutarea name="main" title="main" selected="#uState#" 
initHide="#iHide#">          
        
        <cfswitch expression="">
          <cfcase..../>
       
          <cfdefaultcase.../>
      
        </cfswitch>
    
     </cflayoutarea>
                
        <!-- a) let cf8 determine;
             b) set var s for "selected"        without opposite value of var 
uState
           neither option work
         -->                    
        <cflayoutarea name="HelpTab" title="Help" initHide="#iHide#" 
source="HelpTab.cfm?wi_show=1"/>   
                
  </cflayout>
                                
</CFPROCESSINGDIRECTIVE>

-----------

Sorry about the format, the above copy/paste output may not look neat.
Thanks a million.







~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:296952
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to