Quantcast
Channel: Adobe Community : Unanswered Discussions - ColdFusion
Viewing all articles
Browse latest Browse all 5794

Open CFwindow.

$
0
0

Here is my issue,

 

I have a view.cfm. In the view.cfm, I am including an Iframe which pull information from Inc.cfm page see below.

The issue I am running into now is how to have a click event in the Iframe page open a CFWindow and let the CFWINDOW show/open in the main parent page view.cfm

 

<iframe src="Inc.cfm?contractID=#qry.contractID#&ContractorID=#qry.Contractor ID#&jobnumber=#qry.jobnumber#" style="width:850px; height:200px" name="myRevision" scrolling="Yes"></iframe> 

 

Here is my CFwindow create js

 

function showWin2(id) {

   //do we have one?

   try {

      ColdFusion.Window.destroy('sketch',true);

   } catch(e) { }

    ColdFusion.Window.create('sketch','Drawing Sketch','iframe.cfm?SketchID='+id,{height:470,width:540,modal:true,cl osable:true,draggable:true,resizable:true,center:true});

        ob = ColdFusion.Window.getWindowObject('sketch');// Force the CFWINDOW to CENTER --

        ob.center();    // Force the CFWINDOW to CENTER --

}


Viewing all articles
Browse latest Browse all 5794

Trending Articles