Skip to main content
Participant
March 11, 2010
Question

window using cfwindow displays though initshow="false"

  • March 11, 2010
  • 2 replies
  • 615 views

I'm trying to create a pop-up window using cfwindow. The popup seems to work ok but I get this initial display of my popup form on the browser before the base form displays over it even though the cfwindow has  initshow="false".

The cfwindow pop-up is in a separate file th

<cfwindow
      name="emailItOpsWindow"   
      title="Email Window"
      closable="true"
      height="300"
      width="300"
      draggable="false"
      x="100"
      y="100"
      resizable="true"
      modal="true"
      center="true"
      initshow="false"
      minheight="200"
      minwidth="200" >
     <body>
     <cfform  format="html">

      <table>
       <tr>
      <td>
      <cftextarea rows="3" cols="40" name="comments"></cftextarea>
      </td>
      </tr>  
      <tr>
      <td colspan="2" align="right">
      <cfinput name="sendEmail" type="button"
         onClick="ColdFusion.Window.hide('emailItOpsWindow')">
      </td>
      </tr>     
      </cfform>
      </table>
      </body>
  </cfwindow>

____________________

which I include wirth

<cfinclude template="emailItOps.cfm">

...

later I do the following ... but problem occurs before I click and activate this code

  <td><input type="checkbox" name="OvrComplete"
                      onClick="ColdFusion.Window.show('emailItOpsWindow')" <cfif (#GetCR.Complete# EQ 1)>checked</cfif>> <font size="2" face="Arial, Helvetica, sans-serif"><b>Complete</b></font></td>

Thanks

This topic has been closed for replies.

2 replies

Participant
March 15, 2010

Used a workaround ... put my include of the cfwindow

farther down in the html so it doesn't appear in the visible screen.

Fernis
Inspiring
March 14, 2010

I cannot replicate that with either CF8 or CF9. Your example works fine. I get an empty page with no form controls rendered - and when I click the checkbox, the window with the form gets shown.

I suspect you have some other complex stuff on your page that messes it up. Try to comment pieces of code one by one, and see if anything makes a difference.

-Fernis

Participant
March 15, 2010

I notice that the calling page uses a  target="_blank">

Could that cause the problem?

<a href="editCR.cfm?CRID=<cfoutput>#GlobalCRID#</cfoutput>" target="_blank">Edit  DR</a>