• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

window using cfwindow displays though initshow="false"

New Here ,
Mar 11, 2010 Mar 11, 2010

Copy link to clipboard

Copied

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

TOPICS
Advanced techniques

Views

568

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Mar 13, 2010 Mar 13, 2010

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 15, 2010 Mar 15, 2010

Copy link to clipboard

Copied

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>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 15, 2010 Mar 15, 2010

Copy link to clipboard

Copied

LATEST

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

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation