...

View Full Version : Can I display a view-source in an IFrame?



ca_redwards
08-23-2005, 08:07 PM
Can I display a view-source in an IFrame?

In a local web application that I am writing, I want an html page from my own web server (127.0.0.1) to render in one IFrame (it does) and its html source in another (it won't). How can I accomplish this?

mrruben5
08-23-2005, 08:32 PM
<a href="view-source:bla.html" target="theiframe">view source of bla</a>
<iframe name="theiframe" src="about:blank">

ca_redwards
08-23-2005, 11:26 PM
<a href="view-source:bla.html" target="theiframe">view source of bla</a>
<iframe name="theiframe" src="about:blank">

This does not work.

Ranger56
08-23-2005, 11:39 PM
This does not work.

It should in FireFox.

ca_redwards
08-23-2005, 11:40 PM
It should in FireFox.

I'm obligated to use IE6.

mark87
08-23-2005, 11:57 PM
I remember it used to work with IE a while ago. :confused:

Are you using SP2?

I can only think they stopped it for a security issue or something... ie. Making a webpage open a Notepad window with the source to one of the files on your system could take up lots of RAM, possibly crashing it.

ca_redwards
08-23-2005, 11:59 PM
I remember it used to work with IE a while ago. :confused:

Are you using SP2?

I can only think they stopped it for a security issue or something... ie. Making a webpage open a Notepad window with the source to one of the files on your system could take up lots of RAM, possibly crashing it.

Yes, apparently I am. Just doing a plain vanilla view-source: doesn't work.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum