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

  php

Q(Question):

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?

A(Answer):

lk******@geocities.com (lawrence) wrote in message
news:<da**************************@posting.google. 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

A(Answer):

With total disregard for any kind of safety measures nc@iname.com
(Nikolai Chuvakhin) leapt forth and uttered:

lk******@geocities.com (lawrence) wrote in message
news:<da**************************@posting.google. 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

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


There is no signature…..

A(Answer):

On Sat, 13 Dec 2003 17:48:05 -0600, Phil Roberts
<ph*****@HOLYflatnetSHIT.net> wrote:

With total disregard for any kind of safety measures nc@iname.com
(Nikolai Chuvakhin) leapt forth and uttered:

lk******@geocities.com (lawrence) wrote in message
news:<da**************************@posting.google. 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

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

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

Richard

A(Answer):

Phil Roberts <ph*****@HOLYflatnetSHIT.net> wrote in message
news:<Xn*************************@206.127.4.22>…

With total disregard for any kind of safety measures nc@iname.com
(Nikolai Chuvakhin) leapt forth and uttered:

lk******@geocities.com (lawrence) wrote in message
news:<da**************************@posting.google. com>…

What are some strategies that smart programmers use to combat
this problem?

Use tables rather than divs?

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

Perhaps; but at least parts don’t overlap…

Cheers,
NC

A(Answer):

lk******@geocities.com (lawrence) wrote in message news:<da**************************@posting.google. 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? 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?

1. http://in.php.net/wordwrap
2. Use something like
<a href="http://www.very-very-very-long-url.com/longestestestestestestestestestestestestestest.htm l">http://www.very-very…</a>
or
<a href="http://www.very-very-very-long-url.com/longestestestestestestestestestestestestestest.htm l">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

A(Answer):

<OT>

Richard T. Cunningham <wa******@oasiscomm.net> wrote in message news:<sc********************************@4ax.com>. ..

On Sat, 13 Dec 2003 17:48:05 -0600, Phil Roberts
<ph*****@HOLYflatnetSHIT.net> wrote:

With total disregard for any kind of safety measures nc@iname.com
(Nikolai Chuvakhin) leapt forth and uttered:

lk******@geocities.com (lawrence) wrote in message
news:<da**************************@posting.google. 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

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

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

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

LEAVE A COMMENT