/    Sign up×
Community /Pin to ProfileBookmark

skipping text in dynamic data acces

Hello,

I am a starter in dhtml.
I have used the next code for access text on another page .

<OBJECT ID=”partijen” CLASSID=”CLSID:333C7BC4-460F-11D0-BC04-0080C7055A83″>
<PARAM NAME=”DataURL” VALUE=”analyse1.html”>
<PARAM NAME=”UseHeader” VALUE=”TRUE”>
<PARAM NAME=”TextQualifier” VALUE=””>
<PARAM NAME=”FieldDelim” VALUE=”|”>
<PARAM NAME=”RowDelim” VALUE=”~”>
</OBJECT>
<TABLE DATASRC=”#partijen” BORDER=”0″ width=100%>
<tr><TD ><SPAN DATAFLD=”.”></SPAN></TD></tr>
<tr><TD bgcolor=orange><SPAN DATAFLD=”wit”></SPAN></TD></tr>
<tr><TD bgcolor=orange><SPAN DATAFLD=”zwart”></SPAN></TD></tr>
<tr><TD bgcolor=c8e0fe><SPAN DATAFLD=”uitslag”></SPAN></TD></tr>
<TR><td><SPAN DATAFLD=”toernooi”></SPAN></td></TR>
<TR><td><SPAN DATAFLD=”door”></SPAN></td></TR>
<TR><td bgcolor=c8e0fe><SPAN DATAFLD=”partij”></SPAN></td></TR>

</TABLE>

This works, but :

I would like to skip certain pieces of text that are created on the input file (analyse1.html) .
This is output from a hostsupplied CGI-script which I cannot change on the input side.So I have to use a kind of Javascript when reading the input file.

?
can anyone help me?

Al

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@FangMay 12.2003 — Something like this should work:

var TableString='<table border="0" width="100%">';

partijen.recordset.MoveFirst();

for(var i=1; i<=partijen.recordset.AbsolutePosition; i++) { // skip header, so start at 1

if(partijen.recordset("door").value=="de Bruin") {

TableString+='<tr><td bgcolor="orange">'+partijen.recordset.("wit").value+'</td></tr>'; // add more recordsets as needed

}

partijen.recordset.MoveNext();

}

TableString+='</table>';

document.write(TableString);
Copy linkTweet thisAlerts:
@al_soleauthorMay 12.2003 — problem is : I get a <br> tag for every new line in the page where I substract information from. I need a script to extract all the information from each line , skipping the "<br>"tag

note: this is on every record i substract from the "analyse1.html"

Al
Copy linkTweet thisAlerts:
@FangMay 13.2003 — Your data is coming from a html document, probably the source of the <br> tag, but without a site link or full script it's difficult to help.
Copy linkTweet thisAlerts:
@al_soleauthorMay 13.2003 — thx,

putting the dataformatas="html" in the datafield tags, cleared the tags that were visible.

Al
×

Success!

Help @al_sole spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...