Icon View Thread

The following is the text of the current message along with any replies.
Messages 11 to 13 of 13 total
Thread Replace DOM element with another DOM element?
Wed, Sep 30 2015 2:13 PMPermanent Link

Raul

Team Elevate Team Elevate

On 9/30/2015 1:53 PM, PA wrote:
> "Most modern web browsers will prevent server requests that don't access resources that are from the same origin":

Duh - of course. I don't know what i was thinking today.

What you want cannot be then done with javascript app without either
original site allowing CORS or using some intermediary (a proxy or
similar custom back-end that downloads the needed pages for you).

Raul
Wed, Sep 30 2015 3:08 PMPermanent Link

PA

Or is it possible to show only a specific DOM element (e.g. <div id="content">) inside an iframe?
Thu, Oct 1 2015 8:14 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

PA,

<< Or is it possible to show only a specific DOM element (e.g. <div id="content">) inside an iframe? >>

If *you're* the one providing the DOM element in the form of HTML, then yes.  You can just assign the TBrowser.DocumentText property (be sure to wrap it with the proper <html> and <body> tags in order to make sure that the browser doesn't complain or reject it).

Tim Young
Elevate Software
www.elevatesoft.com
« Previous PagePage 2 of 2
Jump to Page:  1 2
Image