Results 1 to 8 of 8
  1. #1
    3 Star Lounger
    Join Date
    Feb 2003
    Location
    England
    Posts
    378
    Thanks
    1
    Thanked 0 Times in 0 Posts

    viewing source code

    I've started to try and understand more about web design etc and found it useful when I find a site I like the look of to view the source code in Internet Explorer by selecting page > view source. Sometimes this returns a blank such as here http://www.vehiclelicence.gov.uk/EvlPortal...?SKIN=directgov Can anyone explain the reason for this please?

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: viewing source code

    Have you tried scrolling down? In the source code of the page you refer to, the first 37 lines are blank, the actual HTML starts after that.

  3. #3
    Plutonium Lounger
    Join Date
    Oct 2001
    Location
    Lexington, Kentucky, USA
    Posts
    12,107
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: viewing source code

    If you don't already have a copy of Firefox browser installed, you might want to consider doing so, just to have it as a backup browser. It also has another helpful right-click selection called View Page Info that is very helpful for "learning" or capturing images, checking links, etc. See <post:=631,517>post 631,517</post:> <img src=/S/blush.gif border=0 alt=blush width=15 height=15>

    (I don't use IE very much, so I don't know how to do that in the IE browser.)

  4. #4
    Platinum Lounger
    Join Date
    Feb 2002
    Location
    A Magic Forest in Deepest, Darkest Kent
    Posts
    5,681
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: viewing source code

    Jeff

    From my knowledge of how .GOV.UK sites work, this code is automatically generated per session. Each time a person opens the index page a GUI SessionId is created. This is for online tracking when you make purchases or requwsts for SORN.

    With this type of generation,it creates gaps in the HTML as it is reading from source. It is not the biggest issue as browsers ignore blank spaces in the HTML code. It is a bit arduous to check but not wrong.
    Jerry

  5. #5
    Platinum Lounger
    Join Date
    Jan 2001
    Location
    Quedgeley, Gloucester, England
    Posts
    5,333
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: viewing source code

    From the security/hacking/defacement viewpoint it is obviously in the interests of the web-designers to make it more difficult than average for 'viewers' to determine how Government web-pages work.

    Perhaps there's an element of this is what you see, too?

    John
    <font face="Script MT Bold"><font color=blue><big><big>John</big></big></font color=blue></font face=script>

    Ita, esto, quidcumque...

  6. #6
    Plutonium Lounger
    Join Date
    Oct 2001
    Location
    Lexington, Kentucky, USA
    Posts
    12,107
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: viewing source code

    I don't know about Jeff but THANKS, for that was helpful to me as well. As I looked at the source code, I wondered why someone was "in love" with the tab key as well as the line feed key! <img src=/S/anigrin.gif border=0 alt=anigrin width=19 height=19>

  7. #7
    3 Star Lounger
    Join Date
    Feb 2003
    Location
    England
    Posts
    378
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Re: viewing source code

    And there it is! thanks for pointing that out.how stupid not to look further than the end of my nose.

  8. #8
    5 Star Lounger
    Join Date
    Apr 2003
    Location
    Hampshire, United Kingdom
    Posts
    602
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: viewing source code

    Further to Big Al's post, there are some further advantages to Firefox. Firstly, you can view the source for a portion of a page by selecting the bit you want to look at, right-clicking and selecting "view selection source". Secondly, the html is formatted and colour coded so that you can see what's going on much better in Firefox. I don't think either of these features are available in IE.
    Waggers
    If at first you do succeed, you&#39;ve probably missed something.

Posting Permissions

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