How to protect against long urls and keep them from disrupting a page

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

    How to protect against long urls and keep them from disrupting a page

    Everyone please go look at this page, please:




    In Netscape, there is a long url that runs right off the page,
    rightward. In my own comment system, I've run into this trouble
    before. In IE, it is worse, as IE expands the box the url is in, so
    that the box continue to contain the url. On my own site, this once
    caused my main content to get covered by the box holding the comments.

    What are some strategies that smart programmers use to combat this
    problem? I've thought about possible solutions, like using regular
    expressions somehow, but I can't think of a strategy that will
    reliably capture all possibilities.

    Any ideas?
  • Nikolai Chuvakhin

    #2
    Re: How to protect against long urls and keep them from disrupting a page

    lkrubner@geocit ies.com (lawrence) wrote in message
    news:<da7e68e8. 0312131136.36c7 84bc@posting.go ogle.com>...[color=blue]
    >
    > Everyone please go look at this page, please:
    >
    > http://www.crookedtimber.org/archives/000977.html
    >
    > In Netscape, there is a long url that runs right off the page,
    > rightward. In my own comment system, I've run into this trouble
    > before. In IE, it is worse, as IE expands the box the url is in, so
    > that the box continue to contain the url. On my own site, this once
    > caused my main content to get covered by the box holding the comments.
    >
    > What are some strategies that smart programmers use to combat this
    > problem?[/color]

    Use tables rather than divs?

    Cheers,
    NC

    Comment

    • Phil Roberts

      #3
      Re: How to protect against long urls and keep them from disrupting a page

      With total disregard for any kind of safety measures nc@iname.com
      (Nikolai Chuvakhin) leapt forth and uttered:
      [color=blue]
      > lkrubner@geocit ies.com (lawrence) wrote in message
      > news:<da7e68e8. 0312131136.36c7 84bc@posting.go ogle.com>...[color=green]
      >>
      >> Everyone please go look at this page, please:
      >>
      >> http://www.crookedtimber.org/archives/000977.html
      >>
      >> In Netscape, there is a long url that runs right off the page,
      >> rightward. In my own comment system, I've run into this trouble
      >> before. In IE, it is worse, as IE expands the box the url is
      >> in, so that the box continue to contain the url. On my own
      >> site, this once caused my main content to get covered by the
      >> box holding the comments.
      >>
      >> What are some strategies that smart programmers use to combat
      >> this problem?[/color]
      >
      > Use tables rather than divs?
      >
      > Cheers,
      > NC[/color]

      Good plan! Then the *entire* page can be distorted!

      --
      There is no signature.....

      Comment

      • Richard T. Cunningham

        #4
        Re: How to protect against long urls and keep them from disrupting a page

        On Sat, 13 Dec 2003 17:48:05 -0600, Phil Roberts
        <philrob@HOLYfl atnetSHIT.net> wrote:
        [color=blue]
        >With total disregard for any kind of safety measures nc@iname.com
        >(Nikolai Chuvakhin) leapt forth and uttered:
        >[color=green]
        >> lkrubner@geocit ies.com (lawrence) wrote in message
        >> news:<da7e68e8. 0312131136.36c7 84bc@posting.go ogle.com>...[color=darkred]
        >>>
        >>> Everyone please go look at this page, please:
        >>>
        >>> http://www.crookedtimber.org/archives/000977.html
        >>>
        >>> In Netscape, there is a long url that runs right off the page,
        >>> rightward. In my own comment system, I've run into this trouble
        >>> before. In IE, it is worse, as IE expands the box the url is
        >>> in, so that the box continue to contain the url. On my own
        >>> site, this once caused my main content to get covered by the
        >>> box holding the comments.
        >>>
        >>> What are some strategies that smart programmers use to combat
        >>> this problem?[/color]
        >>
        >> Use tables rather than divs?
        >>
        >> Cheers,
        >> NC[/color]
        >
        >Good plan! Then the *entire* page can be distorted![/color]

        Tables work fine if you know how to use them. That's what I use in
        multi-column sites.

        Richard

        Comment

        • Nikolai Chuvakhin

          #5
          Re: How to protect against long urls and keep them from disrupting a page

          Phil Roberts <philrob@HOLYfl atnetSHIT.net> wrote in message
          news:<Xns9450F2 20F5EDBphilrobe rts@206.127.4.2 2>...[color=blue]
          > With total disregard for any kind of safety measures nc@iname.com
          > (Nikolai Chuvakhin) leapt forth and uttered:
          >[color=green]
          > > lkrubner@geocit ies.com (lawrence) wrote in message
          > > news:<da7e68e8. 0312131136.36c7 84bc@posting.go ogle.com>...[color=darkred]
          > >>
          > >> What are some strategies that smart programmers use to combat
          > >> this problem?[/color]
          > >
          > > Use tables rather than divs?[/color]
          >
          > Good plan! Then the *entire* page can be distorted![/color]

          Perhaps; but at least parts don't overlap...

          Cheers,
          NC

          Comment

          • R. Rajesh Jeba Anbiah

            #6
            Re: How to protect against long urls and keep them from disrupting a page

            lkrubner@geocit ies.com (lawrence) wrote in message news:<da7e68e8. 0312131136.36c7 84bc@posting.go ogle.com>...[color=blue]
            > Everyone please go look at this page, please:
            >
            > http://www.crookedtimber.org/archives/000977.html
            >
            >
            > In Netscape, there is a long url that runs right off the page,
            > rightward. In my own comment system, I've run into this trouble
            > before. In IE, it is worse, as IE expands the box the url is in, so
            > that the box continue to contain the url. On my own site, this once
            > caused my main content to get covered by the box holding the comments.
            >
            > What are some strategies that smart programmers use to combat this
            > problem? I've thought about possible solutions, like using regular
            > expressions somehow, but I can't think of a strategy that will
            > reliably capture all possibilities.
            >
            > Any ideas?[/color]

            1. http://in.php.net/wordwrap
            2. Use something like
            <a href="http://www.very-very-very-long-url.com/longestestestes testestestestes testestestestes t.html">http://www.very-very...</a>
            or
            <a href="http://www.very-very-very-long-url.com/longestestestes testestestestes testestestestes t.html">Short
            description</a>

            --
            "The world is too dangerous to live in—not because of the people who
            do evil, but because of the people who sit and let it happen." --
            Albert Einstein
            Email: rrjanbiah-at-Y!com

            Comment

            • R. Rajesh Jeba Anbiah

              #7
              Re: How to protect against long urls and keep them from disrupting a page

              <OT>

              Richard T. Cunningham <wanderer@oasis comm.net> wrote in message news:<scgotvsn6 p9k2jiggvn3a4gm d57mdpk8ud@4ax. com>...[color=blue]
              > On Sat, 13 Dec 2003 17:48:05 -0600, Phil Roberts
              > <philrob@HOLYfl atnetSHIT.net> wrote:
              >[color=green]
              > >With total disregard for any kind of safety measures nc@iname.com
              > >(Nikolai Chuvakhin) leapt forth and uttered:
              > >[color=darkred]
              > >> lkrubner@geocit ies.com (lawrence) wrote in message
              > >> news:<da7e68e8. 0312131136.36c7 84bc@posting.go ogle.com>...
              > >>>
              > >>> Everyone please go look at this page, please:
              > >>>
              > >>> http://www.crookedtimber.org/archives/000977.html
              > >>>
              > >>> In Netscape, there is a long url that runs right off the page,
              > >>> rightward. In my own comment system, I've run into this trouble
              > >>> before. In IE, it is worse, as IE expands the box the url is
              > >>> in, so that the box continue to contain the url. On my own
              > >>> site, this once caused my main content to get covered by the
              > >>> box holding the comments.
              > >>>
              > >>> What are some strategies that smart programmers use to combat
              > >>> this problem?
              > >>
              > >> Use tables rather than divs?
              > >>
              > >> Cheers,
              > >> NC[/color]
              > >
              > >Good plan! Then the *entire* page can be distorted![/color]
              >
              > Tables work fine if you know how to use them. That's what I use in
              > multi-column sites.[/color]


              I'm curious, how will you do it with table?

              </OT>

              --
              http://www.fas.org/news/india/1998/05/0829059802.htm - P.A.Sangma's
              great speach against nuke
              Email: rrjanbiah-at-Y!com

              Comment

              Working...