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 9 of 9
  1. #1
    New to the CF scene
    Join Date
    Jan 2004
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post How do I display the source for a web page?

    I need to know how I can automatically display the source of webpages - I mean I want to be able to see the source code of a webpage within a text file separate from the web browser, without having to select in a drop down menu the "view source" option. I need it to happen just when I click on a link and the page opens. Any ideas?
    Last edited by weloki; 01-22-2004 at 03:07 AM.

  • #2
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,266
    Thanks
    6
    Thanked 48 Times in 48 Posts
    Can either use my view source script (look in my sig), or there are various other scripts posted in these forums that do that in the javascript forum I think I remember seeing some

  • #3
    New to the CF scene
    Join Date
    Jan 2004
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks, Nightfire, for your reply. I did search through quite a few threads and found some people talking about this, but I did not find the right solution for my project. Please, what do you mean by "sig", as in "look in my sig" ( for your script )? Forgive my ignorance.

  • #4
    Regular Coder
    Join Date
    Dec 2003
    Location
    USA
    Posts
    230
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Download Mozilla Firebird and then download the Web Developer Toolbar.
    If I understand you correctly, all you gotta do now is hit one button, and you have the source code in a tab loading in the background.

  • #5
    me'
    me' is offline
    Senior Coder
    Join Date
    Nov 2002
    Location
    Warwickshire, England
    Posts
    1,229
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by weloki
    Thanks, Nightfire, for your reply. I did search through quite a few threads and found some people talking about this, but I did not find the right solution for my project. Please, what do you mean by "sig", as in "look in my sig" ( for your script )? Forgive my ignorance.
    'sig' is short for 'signiture', which is the thing that appears at the bottom of every message you write.

    Anyway, here's the page he was talking about: http://www.blinded.org.uk/tools/viewsource.php
    David House - Perfect is achieved, not when there is nothing left to add, but when there is nothing left to take away. (Antoine de St. Exupery).
    W3Schools | XHTML Validator | CSS Validator | Colours | Typography | HTML&CSS FAQ | Go get Mozilla Now | I blog!

  • #6
    New to the CF scene
    Join Date
    Jan 2004
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post

    Thanks, Paul Jr, and me',
    these responses will surely help. If i have any further troubles i know were to ask for help. Appreciatively,
    weloki

  • #7
    Regular Coder ArcticFox's Avatar
    Join Date
    Jan 2004
    Location
    Vostok Station, AQ
    Posts
    602
    Thanks
    35
    Thanked 3 Times in 3 Posts
    <head>

    <script>
    function viewthesource(){
    window.location="view-source:"+window.location}
    </script>


    </head><body>

    <a href="javascript&#58;viewthesource();">View-Source</a>

    Works in IE, Moz, NS and maybe Opera (can't remember).



    *edited*
    Last edited by ArcticFox; 01-26-2004 at 04:29 AM.
    <div> - putting your mind in a box since 1997

  • #8
    New to the CF scene
    Join Date
    Jan 2004
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ArcticFox,
    Ahhh....yes, thats the stuff. I appreciate your help. If I have any other trouble I will know were to come.
    jeff W.

  • #9
    Regular Coder ArcticFox's Avatar
    Join Date
    Jan 2004
    Location
    Vostok Station, AQ
    Posts
    602
    Thanks
    35
    Thanked 3 Times in 3 Posts
    Excellent!

    Welcome aboard.
    <div> - putting your mind in a box since 1997


  •  

    Posting Permissions

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