Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    Regular Coder
    Join Date
    Dec 2002
    Posts
    169
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Can I display a view-source in an IFrame?

    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?

  • #2
    Regular Coder
    Join Date
    Nov 2004
    Location
    The Netherlands
    Posts
    551
    Thanks
    0
    Thanked 0 Times in 0 Posts
    <a href="view-source:bla.html" target="theiframe">view source of bla</a>
    <iframe name="theiframe" src="about:blank">
    CATdude about IE6: "All your box-model are belong to us"

  • #3
    Regular Coder
    Join Date
    Dec 2002
    Posts
    169
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Does not work

    Quote Originally Posted by mrruben5
    <a href="view-source:bla.html" target="theiframe">view source of bla</a>
    <iframe name="theiframe" src="about:blank">
    This does not work.

  • #4
    Regular Coder Ranger56's Avatar
    Join Date
    Mar 2005
    Location
    Kent, WA.
    Posts
    783
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by ca_redwards
    This does not work.
    It should in FireFox.

  • #5
    Regular Coder
    Join Date
    Dec 2002
    Posts
    169
    Thanks
    0
    Thanked 0 Times in 0 Posts

    I'm obligated to use IE6.

    Quote Originally Posted by Ranger56
    It should in FireFox.
    I'm obligated to use IE6.

  • #6
    Senior Coder
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    2,636
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I remember it used to work with IE a while ago.

    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.

  • #7
    Regular Coder
    Join Date
    Dec 2002
    Posts
    169
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by mark87
    I remember it used to work with IE a while ago.

    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •