Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
rhoenig
Starting Member
11 Posts |
Posted - 2005-01-17 : 13:30:39
|
2 questions:1. On a web page I have a button, when the user clicks the button I want a popup to come up in front of the first window. Currently it goes behind. I'm assuming I need to use javascript so i put this in my page load event<code>Response.Write("<script language='javascript'>")Response.Write("{ window.focus() }")Response.Write("</script>")</code>Question 2:This is in reference to the same page with the button that will open a popup. I want the popup to send the first window to another location. I've tried naming the first window in the page_load event:<code>Response.Write("<script language='JavaScript'>")Response.Write("{ window.name == 'main' };")Response.Write("</script>")</code>Then for the close in the popup I put the following:<code>Response.Write("<script language='javascript'>")Response.Write("main.location.href('IssueActions.aspx?IssueID=' & Me.lblIssueID.Text);")Response.Write("{ window.close() }")Response.Write("</script>")</code>Thank youRobert |
|
jsmith8858
Dr. Cross Join
7423 Posts |
Posted - 2005-01-17 : 13:33:47
|
And your 2 questions are ...?- Jeff |
 |
|
rhoenig
Starting Member
11 Posts |
Posted - 2005-01-17 : 13:46:07
|
My two questions are...1. Get a popup on top of the main window? Currently when I click a button (on the main window which opens a popup) the popup goes behind the main window.2. I would like to have the popup that was opened from the main window refresh the main window when the popup is closed (via a close button on the page).Does that make more sense??Robert |
 |
|
|
|
|