Hi,
we have the following code in our USD 12.7 environment.
It is working fine in Chrome, Firefox, Opera, Safari.
But it not working in Internet Explorer (version 10 and 11).
After a lot of testing, I could find out the second display_new_page is not called as it should be.
As you can see in the code below, I added an alert to the function to check if the function is called, but the alert is not triggered in IE.
By adding extra alerts, I was able to find out these steps are done in IE:
z_add_chassloc() is called.
From within this function the display_new_page is executed and z_add_chassloc2(persid,value,rel_attr_val) is started.
And here is where it stops.
The display_new_page in this function is not executed in Internet Explorer.
Like I already said, this problem occurs only in Internet Explorer. Every other browser is working fine.
[codebox]
var ch_loc = "";
function z_add_chassloc(){
var zFID=document.forms["main_form"].elements["FID"].value;
var zSID=document.forms["main_form"].elements["SID"].value;
var url2;
url2=cfgCgi+"?SID="+zSID+"+FID="+zFID
+"+OP=SEARCH+FACTORY=nr"
+"+KEEP.domset_name=RLIST_STATIC"
+"+QBE.EQ.zUsedByCI="+escape('$args.id')
+"+KEEP.special_lookup=1"
+"+KEEP.backfill_attr=zChassis.id"
+"+HTMPL=javascript:parent.ahdframe.z_add_chassloc2";
display_new_page(url2,ahdframeset.workframe);
}
function z_add_chassloc2(persid,value,rel_attr_val){
var zFID=document.forms["main_form"].elements["FID"].value;
var zSID=document.forms["main_form"].elements["SID"].value;
var url3;
url3=cfgCgi+"?SID="+zSID+"+FID="+zFID
+"+OP=SEARCH+FACTORY=nr"
+"+KEEP.domset_name=RLIST_STATIC"
+"+QBE.EQ.id="+escape(value)
+"+KEEP.special_lookup=1"
+"+KEEP.backfill_attr=zCMDBLocation.zName"
+"+HTMPL=javascript:parent.ahdframe.z_add_chassloc3";
display_new_page(url3,ahdframeset.workframe);
}
function z_add_chassloc3(persid,value,rel_attr_val){
alert("test");
if (value.toString() != ""){
ch_loc = value;
}else{
ch_loc = "";
}
document.getElementById('chassloc').innerHTML = ch_loc;
}
[/codebox]