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 3 of 3
  1. #1
    Regular Coder
    Join Date
    Nov 2005
    Posts
    230
    Thanks
    1
    Thanked 0 Times in 0 Posts

    view-source feature

    Hello
    The VIEW-SOURCE feature can't function in my present browser unlike my previous IE browser.

    Instead of having a opened notepad, i got a Page Cannot be displayed error, it seem to be treated as a html page.

    Code:
    <script>function viewsource() {window.location="view-source:"+document.location.href}</script>
    <input type="button" onclick=viewsource() value="View">
    I am currently using IE 6.0.

  • #2
    Regular Coder
    Join Date
    Jan 2004
    Location
    San Antonio, TX
    Posts
    131
    Thanks
    1
    Thanked 0 Times in 0 Posts

    not sure why no one attempted to answer this, but

    clear out your cache, and cookies, restart your web browser, and try again...I put your code in, and it worked fine for me...I am also using IE 6.0 so your browser version should not be an issue.

    You may also want to check to make sure that you still have Notepad listed in your start menu, sometimes when you uprade, the upgrade will change your settings, and could have removed notepad from your start menu.

    If this is the case, you will need to re-add it. to do this you go into the control panel, click on add/remove programs, and click on the Windows setup tab, and select wordpad. This may require you to put in your Windows disk, but this should do the trick.

    Hope this helps...

    Imperial Spider

  • #3
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,068
    Thanks
    0
    Thanked 256 Times in 252 Posts
    Quote Originally Posted by ImperialSpider
    I am also using IE 6.0 so your browser version should not be an issue.
    It is on IE on XP SP2. The view-source protocol for SP2 has been disabled. See this for more info.
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________


  •  

    Posting Permissions

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