Avatar of gregor2
gregor2
 asked on

About blank iframe not running embedded javascript called from XHR

We have developed some Javascript that gets some content from a website using XHR and then writes to a new document (about:blank) within an iframe.

If the page contains embedded Javascript it’s not executed – it is not executed if its “in line” but it can execute if it’s called from a downloaded include.

In addition even though we set the base ref tag the “onpage “ links ie do not work and are interpreted as being on a different page (which is then attempted to be loaded).

Our app is designed to run on HTML5 as such an HTML 5 only solution would work for us
JavaScript

Avatar of undefined
Last Comment
ahoffmann

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
ahoffmann

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes