Use a 'variable' to avoid repeatedly typing URLs?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Harlan Messinger

    #16
    Re: Use a 'variable' to avoid repeatedly typing URLs?

    Stan Brown wrote:
    Fri, 14 Dec 2007 08:46:05 -0500 from Harlan Messinger
    <hmessinger.rem ovethis@comcast .net>:
    >John U. wrote:
    >>Here is a common problem: I have many (100) links on a web page,
    >>all pointing to different pages on the same domain (e.g., "http://
    >>www.x12345.co m/").
    >>>
    >>This is a bother because (1) it takes a lot of typing, and (2) more
    >>importantly , if (or when) the main URL changes, it takes a lot of work
    >>to update the links.
    >Any text editor--even Windows Notepad--has a search-and-replace feature
    >that will change the domain for you in a single operation.
    >
    In one file at a time. You have to open every file and repeat the
    search and replace.
    >
    I think that qualifies as "a lot of work".
    1. The writer said he has many links on "a" web page.

    2. Many text editors allow batch replacement in a collection of files.

    3. http://www.orbit.org/replace/.
    >
    However, there should be *very* few occurrences of the domain name in
    the HTML for a properly constructed site. The link to your home
    page, from within the site, should be href="/" and not
    href="http://www.example.com ".
    That's what I said.

    Comment

    • Stan Brown

      #17
      Re: Use a 'variable' to avoid repeatedly typing URLs?

      Sat, 15 Dec 2007 08:58:18 -0500 from Harlan Messinger
      <hmessinger.rem ovethis@comcast .net>:
      That's what I said.
      So you did -- I apologize for missing it when I crafted my response.

      --
      Stan Brown, Oak Road Systems, Tompkins County, New York, USA

      HTML 4.01 spec: http://www.w3.org/TR/html401/
      validator: http://validator.w3.org/
      CSS 2.1 spec: http://www.w3.org/TR/CSS21/
      validator: http://jigsaw.w3.org/css-validator/
      Why We Won't Help You:

      Comment

      Working...