By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,374 Members | 1,768 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,374 IT Pros & Developers. It's quick & easy.

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

P: n/a
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?
Jul 17 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
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
Jul 17 '05 #2

P: n/a
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.....
Jul 17 '05 #3

P: n/a
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

Jul 17 '05 #4

P: n/a
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
Jul 17 '05 #5

P: n/a
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
Jul 17 '05 #6

P: n/a
<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
Jul 17 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.