>- see footer for list info -<
Hi Adrian,

 

Here is a sample of what I would like to achieve. 

 

<cfinput type="button" name="graphs"
onclick="getUrl(""javascript:popUpWindow('mailings.broadcast.report.cfm?mail
ing=' + contactList.dataProvider[contactList.selectedIndex]['txt_nk_id'],
800, 600)"")"/>

 

And this was the code I got to successfully open a javascript window:

 

<script language="javascript">
var popup;
function popUpWindow(u, w, h){
     popup = doOpen(u, w, h);
     if (popup == null || popup.closed){          
          writeLink();
     }
       else{
            setTimeout("checkPopup()", 200);
     }
}
function doOpen(url, w, h) {

  return window.open(url, "", "toolbar=no,width=" + w + ",height=" +
    h + ",left=5,top=5,status=no,scrollbars=no,resize=no");
}
function writeLink() {
  var xdoc;
  if (document.getElementById)
    xdoc = document.getElementById("blocked");
  else if (document.all)
    xdoc = document.all("blocked");
  if (xdoc != null) {
    xdoc.innerHTML = "<br>Window blocked.";
  }
}

function checkPopup() {
  if (popup.closed)
    writeLink();
}

</script>

<cfform name="form1" action="" format="flash" width="100%" height="870"
onload="formOnLoad()">
   <cfformitem type="script">
       function openreport(){
         getUrl("javascript:popUpWindow('index.cfm', 800, 600)","")
          }                               
   </cfformitem>
<cfinput type="button" name="name" value="View" onclick="openreport()"/>
</cfform>

 

Thanks in advance for any help.

 

Chris

 

 

_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to 
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<

Reply via email to