Thanks Scott,

Works great!

Hi Robert,

The whole thing should look more like the following (I've cut out some stuff
for clarity):

<SCRIPT LANGUAGE="JavaScript">
<!--

//

function openWindow(URL) {
  var basket='toolbar=no,location=no,directories=no,menubar=no,'
  basket+='scrollbars=yes,width=500,height=250'

  window.open("", "popup_basket", basket)
  document.POPUPFORM.target = 'popup_basket';
  return true;
}
//-->

</SCRIPT>

</HEAD>

<FORM NAME="POPUPFORM" ONSUBMIT="return openWindow" METHOD="POST"
ACTION="testL25a.asp">

....bunch-o-hidden-fields...

<INPUT TYPE=SUBMIT VALUE="Click Here">
</form>



In the new window, then do <body onload="window.focus();">

Basically, you need to define a window that is "named" the same as the form
"target", then when the form submits, the returning results populate that
window. Pretty simple really.

Hope this is what you're looking for. Cheers...

Scott Cadillac,
XML-Extranet ~ 403-254-5002 ~ [EMAIL PROTECTED]
------------
Well-formed Programming in C# .NET, Witango, MSIE and XML
For Hire ~ http://xmlx.ca/forhire
------------
Weblog ~ http://xmlx.ca
Forums ~ http://forums.xmlx.ca
Knowledge Base ~ http://kb.xmlx.ca
------------
IExtranet ~ http://iextranet.ca
Witango ~ http://witango.org
EasyXSLT ~ http://easyxslt.ca
IIS Watcher ~ http://iiswatcher.ca
------------
P.O. Box 69006
RPO Bridlewood SW
Calgary, Alberta
Canada T2Y 4T9


 -----Original Message-----
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, August 04, 2004 12:46 PM
 To: [EMAIL PROTECTED]
 Subject: RE: Witango-Talk: O.T. Javascript Woes

 Sorry, I am confused.

 Do you name the form then?

 Here is what I am working with. This works, but both the
 popup and the parent go to the page. I just want the popup to
 display the args I am passing and have the parent remain unaffected.

 <SCRIPT LANGUAGE="JavaScript">
 <!--

 //

 function openWindow(URL) {
     basket='toolbar=no,location=no,directories=no,menubar=no,'
     basket+='scrollbars=yes,width=500,height=250'
     if (navigator.appName.indexOf("Microsoft")>=0) {
        basket+=',left=350,top=0'    }else{
        basket+=',screenX=350,screenY=0'    }
 window_handle =
 window.open("http://xxx.xxx.xxx.xxx/testL25a.asp","basket",basket)
        window_handle.focus();
      return false;
 }
 //-->

 </SCRIPT>

 </HEAD>
 <body bgcolor="#FFFFFF" link="#005599" vlink="#005599" TEXT="#005599"
 ALINK="005599">


<FORM METHOD="POST" ACTION="testL25a.asp"><td bgcolor="#6699CC"> <input type="hidden" name="LCell1" value="<@VAR LCell1>"> <input type="hidden" name="LCell2" value="<@VAR LCell2>"> <input type="hidden" name="LCell3" value="<@VAR LCell3>"> <input type="hidden" name="LCell4" value="<@VAR LCell4>"> <input type="hidden" name="RCell1" value="<@VAR RCell1>"> <input type="hidden" name="RCell2" value="<@VAR RCell2>"> <input type="hidden" name="RCell3" value="<@VAR RCell3>"> <input type="hidden" name="RCell4" value="<@VAR RCell4>"> <input type="hidden" name="RCell5" value="<@VAR RCell5>"> <input type="hidden" name="RCell6" value="<@VAR RCell6>"> <input type="hidden" name="RCell7" value="<@VAR RCell7>"> <input type="hidden" name="RCell8" value="<@VAR RCell8>"> <input type="hidden" name="RCell9" value="<@VAR RCell9>"> <input type="hidden" name="RCell10" value="<@VAR RCell10>"> <input type="hidden" name="RCell11" value="<@VAR RCell11>"> <input type="hidden" name="testpdf" value="<@VAR testPDF>"> <INPUT TYPE=SUBMIT VALUE="Click Here" onclick="openWindow()"></tr></form>

 >Hey Dude,
 >
 >Try:
 >
 >window.open('', 'my_popup');
 >document.FORMNAME.target = 'my_popup';
 >document.FORMNAME.submit();
 >
 >Or something like that....
 >
 >
 >>  -----Original Message-----
 >>  From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]
 >>  Sent: Wednesday, August 04, 2004 11:18 AM
 >>  To: [EMAIL PROTECTED]
> >> Subject: Witango-Talk: O.T. Javascript Woes
 >>
 >>  I am trying to post data to a popup window. Does anyone
 know  how to
 >> do this?
 >>
 >>  ______________________________________________________________
 >>  __________
 >>  TO UNSUBSCRIBE: Go to
 http://www.witango.com/developer/maillist.taf
 >>
 >
 >
 >_____________________________________________________________
 __________
 >_ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

 ______________________________________________________________
 __________
 TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf



________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to