<< Back to Programming Forum   Search

Posts 1 - 3 of 3   
jQuery select elments outside of current window: 2018-04-14 02:47:17

(deleted) 
Level 63
Report
I want to be able to select all the tables on an external page (call that _window) using the jQuery function that's been defined in the current window. I have tried $(_window.document).select('table') but that always returns _window HTMLDocument - would expect it to return all the tables in the _window context. Any idea how I can do this? I have defined _window before triggering the function using window.open.

Edit: both windows have the same host.

Edited 4/14/2018 03:07:57
jQuery select elments outside of current window: 2018-04-14 10:43:13


Muli 
Level 64
Report
.select(...) is used to bind the text selection event to your document.

What you are looking for is .find(...)
jQuery select elments outside of current window: 2018-04-14 10:51:58

(deleted) 
Level 63
Report
Thanks :). .select is kind of a missleading name.
Posts 1 - 3 of 3