.NET Framework Bookmark and Share   
 index > JScript for the .NET Framework > Page not working in IE 7(Multiple tabs opened)
 

Page not working in IE 7(Multiple tabs opened)

Dear All,
The Background- In my application, I am opening a popup window on clickof a button on a parent window. When the popup is opened I resize the parent window so that both windows are seen parallely and the user can work on both the screens (obviously one screen is active at a time but both pages take half of screen space, as this is the functionality).

The implementation-When button is clicked, the parent window is resized to half and in the popup screen is opened.

The Problem- This application works fine in IE6 and lower versions of IE.Also works in IE 7 only when one tab is opened. It does not work when multiple tabs are opened.

Any help in how to solve this problem is highly appreciated.
Abinash Patra
Dear Abinash, Can you please post your code that caused this problem to define the problem and solve it correctly?
Khaled Moawad --- http://kholyos.blogspot.com
Khaled Moawad
Dear Khaled,
On click of a button (From Parent Window), I call the below JS fuction, which opens up the Popup window. Please note I modified the size of the popup here.
//OPEN THE COMMENTS WINDOW
function openAnalysis(strPath)
{
//Added For Defect Id : UAT 242
var elem = document.getElementById('leftmenutree');
elem.style.display = "block";
elem = document.getElementById('dummyimage');
elem.style.display = "none";
elem = document.getElementById('imgdummyHide');
elem.style.display = "none";
elem = document.getElementById('testLayer1');
if(elem.style.display != "none")
{
toggle('testLayer1','/LA_New');
document.getElementById("imgHide").src="../../Images/show.jpg";
}

if (screen.width==1024)
{
var left = (screen.width/2)-138;
//Added For Defect Id : UAT 377
isPopupOpen1 = window.open(strPath,"","height=712,width=640,top=0,left=" + left +",resizable=yes,minimize=yes,scrollbars=1,resizable=0")
}
else
{
var leftHigher = (screen.width/2)-10;
//Added For Defect Id : UAT 377
isPopupOpen1 = window.open(strPath,"","height=967,width=640,top=0,left=" + leftHigher +",resizable=yes,minimize=yes,scrollbars=1,resizable=0")
}
}

And when the Popup is window I resize the parent window. Below is the code which I have written in the HTML of the popup. This is present just before the body tag ends.

<script language="javascript">
//This resizes the parent screen on load of the page
opener.resizeTo((screen.height-390),(screen.width-279));
toggleLube('tblRemarks','imgRemarks');
</script>
</BODY>

Abinash Patra

You can use google to search for other answers

Custom Search

More Threads

• Replacing Elements and IE crash
• JScripts on ASP.NET Master page?
• JScript equivalent of VBScript Microsoft.IIsScriptHelper?
• winForm User Control and JavaScript
• dblClick on image using right-mouse button
• Exporting a class instance to Jscript.Net
• Globalization
• How put scroll follow in asp menu in this code?
• ASP.NET Menu
• before pastback ,call javascript function