you think.
I have a 2 page frame (WIleft.aspx and WIright.aspx) in asp.net 2.0. I
create an html page by transforming xml with xsl file into WIright and
there are buttons created with dynamic parameters to pass when the
function is run. [left page is used to display other information]
I have the following script that runs when any given button is clicked
in WIright:
function StepComplete(id In)
{
var sIdNo = '&idNo=' + idIn;
newWindow = window.open(('S tepComplete.asp x?' + sIdNo), 'StepComplete',
'width=50,heigh t=50,toolbar=no ,menubar=no,scr ollbars=no,resi zable=no');
}
This opens the pop-up window ok...but my code in the pop-up should run
(saving to database), then reload the parent frame and close the pop-up.
PROBLEM is that the parent frame loads into the pop-up window so I then
have two of the same windows running. I've tried two ways:
(1) Response.Redire ct("WIframe.asp x")
OR
(2) Response.Write( "<script
language=javasc ript>parent.lef t.location='WIl eft.aspx?Step=y es'</script>
")
Response.Write( "<script
language=javasc ript>parent.rig ht.location='WI .aspx?refresh=t rue'</script
>")Response.Write( "<script>window .close();</script>")
Option 1 loads a new copy of the wiframe into the popup.
Option 2 doesn't work for loading the two pages in the frame, but it
does close the pop-up.
The buttons correspond to a Step ID in the right frame document, then I
need to refresh the WIleft to show that new variable.
I'm not too swift with javascript. Is there a way to adjust the function
so that I new window doesn't open, but the WIleft.aspx reloads in the
parent frame and I could pass a query string that way?
THANKS FOR ANY HELP.
Kit
*** Sent via Developersdex http://www.developersdex.com ***