I have one strange issue as below for Chrome in iPad.
There is the web page, which call window.open and window.close to select the user and close. H/w when in 1st Tab page, it can successfully call window.open to open the page to select user, but when click select to call window.close, it does not work without any change, still stay at the current screen to select user.
But if I open the web page in 2nd, 3rd...Tab page, it can both successfully window.open and window.close to complete the user select process.
Meanwhile, if I clear all browsing data and close all tab pages, then the new 1st tab page will works with window.open and window.close.
But if I not only clear all browsing data, but also force close Chrome (double click home button and swipe Chrome out), then the new 1st tab page will fail with window.close.
Another interesting find is that if I open such as google.com at the 1st tab of Chrome, then in 2nd tab still open my web and call window.open and window.close, all of them also works.
May I know if there is any difference about the 1st tab of Chrome or something else wrong with window.close for Chrome in iPad.
Finally I find possibly issue root as opener is null at the 1st tab.
Could you pls help to check and thx a lot!
function doSelect( userid, username )
{
opener.document.`formName`.`fieldPrefix`_ID.value = userid;
opener.document.`formName`.`fieldPrefix`_Name.value = username;
if ( opener.document.`formName`.`fieldPrefix`_SavedName )
{
opener.document.`formName`.`fieldPrefix`_SavedName.value = username;
}
if ( opener.markDirty != null )
{
opener.markDirty();
}
window.close();
}
function chooseUser( prefix, title, filter ){
window.open("/livelink/livelink.exe?func=user.SelectUserDlg&formname=ReportPrompts&fieldprefix=" + prefix + "&title=" + title + filter + "&DisplayUserName","","height=340,width=680,scrollbars=yes,resizable=yes,menubar=no")