chopping of string

R

Roedy Green

The 2nd link (to the validator) identifed 8 validation errors
at the moment I checked it.

I got 4. I think it was complaining about my <link ...> instead of
<link ... />. I am correcting them all throughout the site. W3 has
gone down so I can't continue my validation experiments there.

That seems an unlikely error to cause it to render comments as text.
 
R

Roedy Green

The 2nd link (to the validator) identifed 8 validation errors
at the moment I checked it.

The strange thing is now I have corrected the <link /> error (which
propagated to create the other errors) and pass W3C, the rendering
program just freezes, rather that butchering the rendering.
 
G

gk

gk said:
gk, 05.10.2007 04:58:
Why not simply tell the browser to wrap the content of the table cell?
[quoted text clipped - 14 lines]
So if your data does not contain whitespaces (or some words are actually
longer that the table cell) then it won't work.
why do you mean by "...some words are actually longer that the table
cell..." ???

If 25% of the screen is this long
' ', that is the table cell width, but if the word is..
SuperCalaFragilisticExpyAladocious
.long, it will be a word that is 'longer that the table cell'.

Ultimately though, it sounds better not to set table
width or cell widths as %, pixels, colspan or anything
else, dump the text directly to the cells, and let the
browser render it as it sees fit.


I cant do that .

because , i want my table should be the whole screen of the
browser ...so table=100%

and i know , how many columns i would have ...9 columns.

so, i can distribute the above 100% into 9 columns . However , i would
give more % to those column for which i know DB text records are
longer , and finally i would like to adjust the whole width to 100%.


I have checked your solution . i have put white space normal as a
style attribute in my columns (<td>) but unfortunately it did not
work ...still i am getting stretched long words and scrollbar.















After all, browser
 
A

Andrew Thompson

Roedy said:
The strange thing is now I have corrected the <link /> error (which
propagated to create the other errors) and pass W3C, the rendering
program just freezes, rather that butchering the rendering.

That's a bummer. I might look more closely into it later.
Can you give me the exact URL of a page that is both
valid and locking up? (I note that the original page I
was validating, is now down to three errors, but still
showing the comments).

--
Andrew Thompson
http://www.athompson.info/andrew/

Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.aspx/java-general/200710/1
 
A

Andrew Thompson

RoedyGreen wrote:

(re: comments in HTML, as rendered by JEditorPane)

I am *finally* convinced.

I went hunting for lint checkers (for Java), and
of course the Java Glossary was in the top 5 hits,
so I surfed over to..
<http://mindprod.com/jgloss/lint.html>
...then. I noticed something odd* in my 'browser'
(IE 6) and did some further checking.

- That URL according to the W3C validator..
"This Page Is Valid HTML 4.01 Transitional!"
- Contains comments
- *Displays* the text of the comments when
rendered in JEditorPane.

So, you are right in that even entirely valid
and well-formed HTML can be screwed up to that
extent, in the J2SE 1.6 JEditorPane.

Perhaps it is something in the styles.

What a pity. :-(

* Oh, and the odd thing? IE 6 inserts a 'space'
to the right of the page content, for no apparent
reason - all the content is rendered within 100%
of the visible window width. This forces the page
to always have a horizontal scrollbar, no matter
how much/little screen space is devoted to it.

(mutters) Damn fool IE.

Andrew T.
 
R

Roedy Green

* Oh, and the odd thing? IE 6 inserts a 'space'
to the right of the page content, for no apparent
reason - all the content is rendered within 100%
of the visible window width. This forces the page
to always have a horizontal scrollbar, no matter
how much/little screen space is devoted to it.

This is a bit of idiocy in IE Zoom. Compare Opera and IE Zoom.
IE just tacks on scroll bars. Opera reflows the text to fit the
bigger type.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top