javascript parent window URL

S

semesm22

hey all, i am using javascript with ASP.NET, and i what i have done is
open up a small pop-up window from a Calendar control that will display
the date the user selected....now what i need to do is have a button
that will close the pop-up window, and redirect the parent window with a
hyper ref that has a query string in it

now, i researched this and i go

<script language=javascript>

function PlaceOrder()
{

window.opener = null; // this is so that IE doesn't show the confirm
close message
window.opener.location.href =
"http://localhost/Order.aspx?purpose=test";
self.close();
}
</script>

however, the problem is that i get an error that says
window.opener.location is null or not an object...i removed the
window.opener = null method, and i still get the same error

please help, i've been working on this for days


thanks sam
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,164
Messages
2,570,898
Members
47,440
Latest member
YoungBorel

Latest Threads

Top