This topic is READ ONLY
import-bot (20211) [Avatar] Offline
#1
[Originally posted by mckan]

Hi,

Because it is urgent for me to solve this problem for the report printing, so
I will try to describe it in detail.

I take two examples in the following, please look at the 'nowrap' location for
these two examples, 'nowrap' the html translated by HTMLTable is as the
example 1, it is put in <Table> tag, but for this way, nowrap is useless in
browser. 'Nowrap' location is working as example 2, putting in <TD> tag.
My questions are,
1. How can I let the nowrap in HTML file be as example 2?
2. If the 'nowrap' location is still as same as example 1, how can I replace
its location. I try to use replace, but application hangs, I think it's caused
by too many <TD> tags.

best regards,

Peter

Example 1



<table boarder nowrap>
<tr><th colspan=4><h1>Address Book</h1>
<tr><th>Name<th>Telephone<th>Address<th>Comments
<tr><td>Dave Raggett<td>0454-238122
<td align=left>11 Hunters Mead
Hawkesbury Upton
nr. Badminton
AVON GL9 1BL
<td align=left>Dave lives in a detached house in a 4 year old
cul-de-sac in the village of Hawkesbury Upton. The village
lies on the uphill edge of the cotswold escarpement and is
well known for the nearby monument to a general who fought
in the battle of Waterloo
</table>


Example 2



<table boarder>
<tr><th colspan=4><h1>Address Book</h1>
<tr><th>Name<th>Telephone<th>Address<th>Comments
<tr><td>Dave Raggett<td>0454-238122
<td align=left nowrap>11 Hunters Mead
Hawkesbury Upton
nr. Badminton
AVON GL9 1BL
<td align=left nowrap>Dave lives in a detached house in a 4 year old
cul-de-sac in the village of Hawkesbury Upton. The village
lies on the uphill edge of the cotswold escarpement and is
well known for the nearby monument to a general who fought
in the battle of Waterloo
</table>

import-bot (20211) [Avatar] Offline
#2
Re: About the detail description about 'NOWRAP' problem .
[Originally posted by johnlatham]

Peter, I just had a look at http://www.willcam.com/cmat/html/tables.html which
contains information on html tags. The 'NOWRAP' attribute of the <Table> tag
is supported only by browsers that still use the old HTML3.0 standard. It
would seem that the browser you are using does not. The NOWRAP as part of the
<TD> tag is generic.
import-bot (20211) [Avatar] Offline
#3
Re: About the detail description about 'NOWRAP' problem .
[Originally posted by johnlatham]

> Peter, I just had a look at http://www.willcam.com/cmat/html/tables.html which
> contains information on html tags. The 'NOWRAP' attribute of the <Table> tag
> is supported only by browsers that still use the old HTML3.0 standard. It
> would seem that the browser you are using does not. The NOWRAP as part of the
> <TD> tag is generic.
Try using the Modify statement for your datastore ie
lds.Modify("DataWindow.HTMLTable.NoWrap=~"yes~" ") as was done in the book for
turning on Cascading Style Sheets.
import-bot (20211) [Avatar] Offline
#4
Re: About the detail description about 'NOWRAP' problem .
[Originally posted by mckan]


Hi, John,

Thanks for your reply,

I try as what you say and the description of book, (but the book descript this
property is strange)
just as what I say, the 'nowrap' is added in the <Table> tag,
so I cannot see the correct result.

Peter

> Try using the Modify statement for your datastore ie
> lds.Modify("DataWindow.HTMLTable.NoWrap=~"yes~" "smilie as was done in the book for
> turning on Cascading Style Sheets.
import-bot (20211) [Avatar] Offline
#5
Re: About the detail description about 'NOWRAP' problem .
[Originally posted by johnlatham]

>
> Hi, John,
>
> Thanks for your reply,
>
> I try as what you say and the description of book, (but the book descript this
> property is strange)
> just as what I say, the 'nowrap' is added in the <Table> tag,
> so I cannot see the correct result.
>
> Peter
>
> > Try using the Modify statement for your datastore ie
> > lds.Modify("DataWindow.HTMLTable.NoWrap=~"yes~" "smilie as was done in the book
for
> > turning on Cascading Style Sheets.

Peter, when you used f_ReplaceAll did you specify the 'subparm' and
'replacevalue' correctly? I ask because I didn't when I first tried it. I
tried to replace '<td ' with '><td nowrap ' which caused a perpetual loop. I>
changed the values to '<td CLASS ' and '><td nowrap CLASS' which worked fine>
for quite a large table that was using style sheets.
import-bot (20211) [Avatar] Offline
#6
Re: About the detail description about 'NOWRAP' problem .
[Originally posted by mckan]


Hi, John,

I meet the same problem, 'perpetual loop', when I try to replace all '<td '>
with '<td nowrap '. Do you know why it works when changing the '><td' to '><td>
CLASS ' and '<td nowrap CLASS'? I think the subparm and replacevalue for this>
two case are the same.

regards,

Peter


>
> Peter, when you used f_ReplaceAll did you specify the 'subparm' and
> 'replacevalue' correctly? I ask because I didn't when I first tried it. I
> tried to replace '<td ' with '><td nowrap ' which caused a perpetual loop. I>
> changed the values to '<td CLASS ' and '><td nowrap CLASS' which worked fine>
> for quite a large table that was using style sheets.
import-bot (20211) [Avatar] Offline
#7
Re: About the detail description about 'NOWRAP' problem .
[Originally posted by johnlatham]

I'm not sure how the f_ReplaceAll actuelly works. I had originally assumed
that the function would scan through the string and replace the subparm with
the replacevalue and move on to the next instance of the subparm. It appears
that what it actually does is continue to 'look' through the string until no
further occurances of the subparm exists and then exits. In the case of
replacing '<td' with '><td nowrap' this will obviously never end. By specifying>
'<td Class' and '><td nowrap Class' each subparm can be replaced only the once,>
and the problem is solved.

>
> Hi, John,
>
> I meet the same problem, 'perpetual loop', when I try to replace all '<td '>
> with '<td nowrap '. Do you know why it works when changing the '><td' to '><td>
> CLASS ' and '<td nowrap CLASS'? I think the subparm and replacevalue for this>
> two case are the same.
>
> regards,
>
> Peter
>
>
> >
> > Peter, when you used f_ReplaceAll did you specify the 'subparm' and
> > 'replacevalue' correctly? I ask because I didn't when I first tried it. I
> > tried to replace '<td ' with '><td nowrap ' which caused a perpetual loop. I>
> > changed the values to '<td CLASS ' and '><td nowrap CLASS' which worked fine>
> > for quite a large table that was using style sheets.