0

Possible Duplicate:
Can I pass a JavaScript variable to another browser window?

I'm trying to change a 'showModalDialog' so that I can, instead of opening the page in dialog, open it in a seperate tab/window. In order to do so, I must pass the variable (array) it's expecting, or the other page fails to load as expected. I'm scratching my head on how to accomplish this. Any ideas?

edited to include: I don't have access to change any code on the page that is being opened as the dialog, so I need to pass the vArgs to (aryAry) so that it receives them the same way it would if it was being opened with showModalDialog, the page being opened can't be changed, so it mustn't be able to tell a difference.

Code as it stands, opening a modal dialog:

 var aryAry = new Array();
if ( aryAry )
{
  aryAry[ 0 ] = homeW.all.xmlHomeW.XMLDocument;
  aryAry[ 1 ] = homeW;
}

vR = window.showModalDialog( 'home.aspx', aryAry, 'dialogheight: 500px; dialogwidth: 500px;');

if ( vR == null )
  vR = false;
Community
  • 1
  • 1
fMinkel
  • 179
  • 2
  • 5
  • 12
  • I don't think it is, I don't have access to the code for the new page/window I'm opening, so to the page I'm opening it has to come through the same way as the vArgs for a showModalDialog do. – fMinkel May 10 '12 at 21:41
  • Why didn't you tell us this important fact right from the beginning? Nevertheless, that is not possible I think. – Andreas May 10 '12 at 22:04

0 Answers0