hi all,
I am calling a javasript funciton that will open a new popup style window, however i want to pass a few parameter as a query string of the new window which will contain a specific data depending on what user have chosen. I have a label in my parent window that contains a data that i want to pass along to the new popup window. I have been able to achieve how to open a new popup window without all the toolbars, status bar , etc but find the lable here is what i use. It process the page but give be "Object Required" code 0 error
var OAASIDHiddenField = document.getElementById("OAA_SIDHF");
url = url + '?OAA_SID=' + OAASIDHiddenField.text + ';';
But once i add that two line to my code the popup windows stop appearing.... below is the rest of the code ...
function wopen(url, name, w, h)
{
// Fudge factors for window decoration space.
// In my tests these work well on all platforms & browsers.
w += 32;
h += 96;
wleft = (screen.width - w) / 2;
wtop = (screen.height - h) / 2;
// IE5 and other old browsers might allow a window that is
// partially offscreen or wider than the screen. Fix that.
// (Newer browsers fix this for us, but let's be thorough.)
if (wleft < 0)
{
w = screen.width;
wleft = 0;
}
if (wtop < 0)
{
h = screen.height;
wtop = 0;
}
var OAASIDHiddenField = document.getElementById("OAA_SIDHF");
//url = url + '?OAA_SID=' + OAASIDHiddenField.text + ';';
var win = window.open(url,
name,
'width=' + w + ', height=' + h + ', ' +
'left=' + wleft + ', top=' + wtop + ', ' +
'location=no, menubar=no, modal=yes' +
'status=yes, toolbar=no, scrollbars=no, resizable=no', 'title=no', 'resizable=no', 'directories=no', 'status=yes');
// Just in case width and height are ignored
win.resizeTo(w, h);
// Just in case left and top are ignored
win.moveTo(wleft, wtop);
win.focus();
}