2

I ran into an issue where one of my customer's browser does not support iFrames (rather his Outlook does not). Without using iFrames, how can i display another page's content inside Html? Original iFrames insert looked as following:

<iframe src="http://mybox:8081/blah/report.jsp" width="1000" height="420">
<p>Your browser does not support iframes.</p>
</iframe>

Please advise. Thank you.

3 Answers 3

2

You cannot without using an iFrame.

Your options are even more limited because you're working with an email client. HTML in email clients are very finicky.

Sign up to request clarification or add additional context in comments.

Comments

1

It seems you are using an email client, which definitely doesn't support iFrames, but for reference, you can do this with jQuery on a website.

$(document).ready(function() {
    $(".yourSelector").load("/pages/pageyouwanttoloadhtmlof.html");
});

Please note that .load will strip out scripts in most cases (there are uses that won't), and also note that you cannot load content from different domains than yours. (There are ways around this with things like jsonP, but that gets quite complicated, and you pretty much still have to control both domains.

Comments

0

You can use a DIV to display it, another page content should set using DIV's inner html property

2 Comments

The OP is talking about doing this within Outlook. You cannot use JavaScript within email clients, so this is not an option.
Sorry I wasn't aware of that.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.