I'm having some window focusing problems... here's the steps that I've taken:
I am opening a "contact window" from the parent -
From that window, the opened file checks to see if the user has entered a contact signature. If not, user clicks link in child window to open signature editor in parent -
Once the user submits new signature in parent, "feedbackWin" is supposed to focus -
So that is how I'd like it to be working however instead of feedbackWin focusing the old window with existing contents, the old window is focused and reloaded. So somehow, the feedbackWin variable is being lost in the process.
Does my description make any sense?? It seems like there is just a communication issue between parent and child windows.
Any suggestions for getting around this problem are greatly appreciated!!
Jason
I am opening a "contact window" from the parent -
Code:
function openFeedbackWindow(thePage) {
feedbackWin=window.open(thePage,'feedback',settings)
}
From that window, the opened file checks to see if the user has entered a contact signature. If not, user clicks link in child window to open signature editor in parent -
Code:
function openparent(url) {
opener.location.href = url;
}
Once the user submits new signature in parent, "feedbackWin" is supposed to focus -
Code:
var feedbackWin;
if ( typeof feedbackWin == 'object' ) {
feedbackWin.focus();
}
else {
feedbackWin = window.open('/<?=$url;?>','feedback', settings);
}
So that is how I'd like it to be working however instead of feedbackWin focusing the old window with existing contents, the old window is focused and reloaded. So somehow, the feedbackWin variable is being lost in the process.
Does my description make any sense?? It seems like there is just a communication issue between parent and child windows.
Any suggestions for getting around this problem are greatly appreciated!!
Jason