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

javascript - Iterate over array and calculate average values of array-parts -

iphone - Using nested NSDictionary with Picker -

objective c - Newbie question -multiple parameters -