IE browser freezes when opening popup from sidebar

I have a sidebar application and the sidebar acts as a parent window. This parent window will open a chat popup by clicking the link. The problem is that when we try to close the IM popup and reopen the IM popup, there is a long time delay for the IM popup to open again (IN ie6 the page cannot be loaded). These problems are only visible in the IE browser. IT works fine in Firefox. Actually Why did this only happen for the IE browser? Is this related to any permission issue?

The code is here,

a class = "IM" href = "#" title = "IM" onclick = 'openWindow (" http: //localhost/myproject/web/run.php " "MyWindow", "Width = 250, height = 250, state = 1 ") '> I.M.

function openWindow(url,name,status)

      

{

try

{

    var WindowsNames = url.split('=');
            //Creating the contact object
    contact = rosterObj.roster[WindowsNames[1].toLowerCase()]['contact'];
            // Check whether the window connection object 'contact.chatW' exists and if there is already chat window opened 'contact.chatW.closed'
    if(contact.chatW && !contact.chatW.closed)
    {
        //Cheking for appending the chat message
        if(contact.chatW.name == name)
        {

        }
        //if the window is not opened, open the IM pop up window
        else
        {
            contact.chatW = window.open(url,name,status);
        }
    }
    //IF both the connection object and IM window is opened, will open a new pop up window
    else
    {
        contact.chatW = window.open(url,name,status);
    }
}
catch(e)
{
}

      

}

Thank you Raju

+2


source to share





All Articles