javascript - Child window closes in IE9 on click of Button -


so have javascript code onclick of button child window opened parent window.

 try{       window.opener.item(23,add,document.addedit.name.value,document.addedit.type.value);  } catch(err){          alert('the form editing not available.');  } 

item function in parent window -

 function item(id,action,name,type){      savescroll();     document.abc.itemid.value = id;     document.abc.itemaction.value = action;     document.abc.itemname.value = name;     document.abc.itemtype.value = type;     document.abc.submit();  } 

so somehow getting error catch block. happens in ie9, works in firefox, ie8, chrome. error "member not found". has faced issue in ie9?

i'm not sure since don't have ie, have tried declaring 'item' instead:-

var item = function(id, action, name, type) { //etc } 

the other thing i'd try renaming 'item' else in case there's name clash...


Comments

Popular posts from this blog

actionscript 3 - TweenLite does not work with object -

php - How can I edit my code to echo the data of child's element where my search term was found in, in XMLReader? -

c# - Global Variables vs. ASP.NET Session State -