evprtv
evprtv

Reputation:

Third party content in custom pop-up window

Taking http://youtube.com, http://justin.tv, http://ustream.tv as examples, is it possible to do the following:

This would be specifically useful when embed is disabled by a particular site.

Upvotes: 0

Views: 926

Answers (2)

jasonkarns
jasonkarns

Reputation: 1832

While you can't resize the popup to the size of specific content (for the reason levik mentioned above) you can scroll directly to particular elements provided the third party site has decorated the element (or ancestors/siblings nearby) with an ID. I regularly use jQuery's nyroModal plugin for in-page popups (generally more user-friendly than full browser popups). NyroModal supports scrolling to an element (say a flash video with an id of "mainVideo") using a link such as:

http://example.com/thirdparty.html#mainVideo

Upvotes: 1

levik
levik

Reputation: 117559

Your script is not allowed to inspect or manipulate the DOM content of documents that come from a different host than the one for the page in which it runs.

That means that unless your scrip is running from the youtube.com domain, you will not be able to inspect or manipulate pages there.

Upvotes: 1

Related Questions