jquery - window.opener error on trigger event -


I am running this code to try to reload the page after closing the current code (which Edits the values ​​from one (reload); window.close (); Trigger}, 1700):

  setTimeout (function () {window.opener. $ ('Window' );   

And I get this error every time:


The XML filter is applied to non-XML values ​​({ Length: 0, prevObject: {{: (}}, reference: ({}), length: 1}, reference: ({}), selector: "window"})

I really do not understand anything about XML and I do not even understand what is wrong ...


Your syntax is incorrect.You are trying to refer to a property of window.opener which is equal to the jQuery object. Remove the reference, as it provides an alternative technology to choose the current window, and is irrelevant here.

  setTimeout (function () {window.opener.location.reload); Window. Close ();}, 1700);    

Comments