Automatically Resize Height of iFrame Containing External URLs

advanced-prototyping

#1

Hi all,

How do I get an iframe to resize based on the height of a page of an external URL?

I need to load external URLs and then be able to reference their page height.

  1. This iframe height needs to change when a new URL is loaded into its frame.
  2. I need to be able to then reference this height (global variable is fine).

I have tried the solution in this post but this has only worked for local pages and not newly loaded URLs.

Is there a way to do this? I have attached an .RP file for reference.

Thanks!
Dan

HelpfulWidget-v3.rp (127.0 KB)


#2

Hi!

Unfortunately, for external URLs, you almost assuredly won’t be able to get information about the size of the webpage due to security concerns. On every external webpage I tried I got a cross-origin security error.