Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. The Weird and The Wonderful
  4. Thousands of links using...

Thousands of links using...

Scheduled Pinned Locked Moved The Weird and The Wonderful
htmlhelp
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    krumia
    wrote on last edited by
    #1

    We have a tool to generate HTML reports. And in this generated HTML we have links in between sections. Those links are very useful for jumping in between sections. However, When the HTML is saved/moved to another location, all the links started to fail. Simple inspection of the HTML source revealed the problem. All the links used were like this:

    [some text](file:///C:/Documents%20and%20Settings/krumia/Local%20Settings/Temp/20120301-00035.html#ta026A3538)

    They used freaking absolute paths. Could have just used the section anchor #ta026A3538. Now think of the disadvantages: (a) As soon as you save the freaking file anywhere else it will be useless. (b) File size increases because of long absolute paths. :doh:

    Peace, ye fat guts!

    Z R M 3 Replies Last reply
    0
    • K krumia

      We have a tool to generate HTML reports. And in this generated HTML we have links in between sections. Those links are very useful for jumping in between sections. However, When the HTML is saved/moved to another location, all the links started to fail. Simple inspection of the HTML source revealed the problem. All the links used were like this:

      [some text](file:///C:/Documents%20and%20Settings/krumia/Local%20Settings/Temp/20120301-00035.html#ta026A3538)

      They used freaking absolute paths. Could have just used the section anchor #ta026A3538. Now think of the disadvantages: (a) As soon as you save the freaking file anywhere else it will be useless. (b) File size increases because of long absolute paths. :doh:

      Peace, ye fat guts!

      Z Offline
      Z Offline
      ZurdoDev
      wrote on last edited by
      #2

      That's one way to license your product. Won't work on other machines.

      1 Reply Last reply
      0
      • K krumia

        We have a tool to generate HTML reports. And in this generated HTML we have links in between sections. Those links are very useful for jumping in between sections. However, When the HTML is saved/moved to another location, all the links started to fail. Simple inspection of the HTML source revealed the problem. All the links used were like this:

        [some text](file:///C:/Documents%20and%20Settings/krumia/Local%20Settings/Temp/20120301-00035.html#ta026A3538)

        They used freaking absolute paths. Could have just used the section anchor #ta026A3538. Now think of the disadvantages: (a) As soon as you save the freaking file anywhere else it will be useless. (b) File size increases because of long absolute paths. :doh:

        Peace, ye fat guts!

        R Offline
        R Offline
        RobCroll
        wrote on last edited by
        #3

        Interesting how the hard coded URL has the word krumia in it! ;P

        "You get that on the big jobs."

        K 1 Reply Last reply
        0
        • R RobCroll

          Interesting how the hard coded URL has the word krumia in it! ;P

          "You get that on the big jobs."

          K Offline
          K Offline
          krumia
          wrote on last edited by
          #4

          he he :D I replace my actual username with krumia. ;P

          Peace, ye fat guts!

          1 Reply Last reply
          0
          • K krumia

            We have a tool to generate HTML reports. And in this generated HTML we have links in between sections. Those links are very useful for jumping in between sections. However, When the HTML is saved/moved to another location, all the links started to fail. Simple inspection of the HTML source revealed the problem. All the links used were like this:

            [some text](file:///C:/Documents%20and%20Settings/krumia/Local%20Settings/Temp/20120301-00035.html#ta026A3538)

            They used freaking absolute paths. Could have just used the section anchor #ta026A3538. Now think of the disadvantages: (a) As soon as you save the freaking file anywhere else it will be useless. (b) File size increases because of long absolute paths. :doh:

            Peace, ye fat guts!

            M Offline
            M Offline
            Mohibur Rashid
            wrote on last edited by
            #5

            Haha, I remember one government site. That entire site was developed in the local windows based PC and when they upload it to the linux server all the freaking path was absolute "C:/Program Files/PHP/WWW/....." Mentally disorder will do better work than that one

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups