Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: RE: asp_web_howto digest: October 30, 2001


Message #1 by "Rainery, Kim" <Kim.Rainery@w...> on Tue, 30 Oct 2001 18:09:18 -0600
Re:How do I pop up multiple windows-  dynamically?



I figured it out. 



<SCRIPT type="text/javascript">

  <!--

  function

printIt(WordFileFormat,WPFileFormat,HTMLFileFormat,PDFFileFormat)

  {

   var urlStr = "http://<%response.write

WestSession("SESS_PrintServer")%>/delivery.";

       

   if (HTMLFileFormat == "HTML") {

    var urlStr1 = urlStr +

"html?dest=atp&dataid=<%=strHTMLQDataID%>&format=HTML";

    window.open(urlStr1,"HTML");

   }

   if (WPFileFormat == "WORDPERF") { 

    var urlStr2= urlStr +

"wpd?dest=atp&dataid=<%=strWPERFQDataID%>&format=WORDPERF";

    window.open(urlStr2,"WORDPERF");

   }

   if (WordFileFormat == "MSWORD") { 

   <%If (strComp(strOperatingSystem, "WIN",

vbTextCompare) <> 0) Then%>

    var urlStr3 = "<%response.write

Base%>/print/ATPmac.wl?dest=atp&dataid=<%=strMSWordQDataID%>&format=MSWORD&<

%= strStdAppParms%>";

    window.open(urlStr3,"MSWORD");

   <%Else%>

    var urlStr3 = urlStr +

"doc?dest=atp&dataid=<%=strMSWordQDataID%>&format=MSWORD";

    window.open(urlStr3,"MSWORD");

   <%End If%>

   }

   if (PDFFileFormat == "PDF") { 

    var urlStr4 = urlStr +

"pdf?dest=atp&dataid=<%=strPDFQDataID%>&format=PDF";

    window.open(urlStr4,"PDF");



   }

   

  }

  //-->

 </SCRIPT><%



Here if a value is valued then the url in the window exists will pop up.



thanks


  Return to Index