ISSUE :
 
Profile photo
Submitted by Yogaraj Khanal
on November 21st, 2013 at 12:42:19 EST

window.open loosing session data in popup with security warning any workaround?


var WindowArgs = "toolbar=1," + "menubar=1," +"location=no," + "directories=no," + "status=1,";
var selectFormId = new Array();
selected_Form_Ids = IbisDataTables.getSelectedOptions(IbisDataTables.getTable($("#patDataCollectionProgressDiv")));
var url = basePath+ '/response/viewForm.do?action=view_draft_form_withheader&source=response_home&id='+selected_Form_Ids+ "&userid="+ userOneEntryId;
//$.cookie('view_cookie', 'view_cookie_val', { expires: 7, path: '/' });
//openPopup(url, "", WindowArgs+ "top=10,left=10,scrollbars=yes,resizable=yes,width=600,height=400");




function openPopup(url, name, specs) {
var wnd = null;
if (typeof name == "undefined" || name == "") {
name = "newwindow";
}

if ((BrowserDetect.browser == "Explorer")) {
//var cookit=$.cookie('view_cookie_val');
//alert(cookit);
if ($("#redirectLink").length < 1) {
// if we don't currently have a redirect link on the page, create one
$("body").append('<a href="javascript:void(0)" id="redirectLink" target="_self" style="display:none">click</a>');
}
// change the properties of the link and click it
wnd = window.open("", name, specs);
var link = document.getElementById("redirectLink");
link.target = name;
link.href = url;
link.click();
}
else {
wnd = window.open(url, name, specs);
}
return wnd;
}




Profile photo
Replied by Yogaraj Khanal
on November 21st, 2013 at 12:43:30 EST
This just happens in IE other browser are fine I am looking for cross browser solution
openPopup() is the function i am calling.