Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unbound Tabular Data Control

Status
Not open for further replies.

Rouslan

Technical User
Sep 7, 2002
27
CA
I just can't figure this out. I have simplified my code to just test the TDC but it still has errors when I load it in a browser. Somebody put me out of my misery and tell me what's wrong with this code:

<html>

<head>
<title>Tabular Data Control</title>
</head>

<body>
<center><h1>Tabular Data Control Demonstration</h1></center>

<OBJECT ID=&quot;tdc&quot; CLASSID=&quot;CLSID:333C7BC4-460F-11D0-BC04-OO80C7055A83&quot;>
<PARAM NAME=&quot;DataURL&quot; VALUE=&quot;Data.txt&quot;>
</OBJECT>

<script LANGUAGE=&quot;JavaScript1.2&quot; type=&quot;text/javascript1.2&quot;>
tdc.recordset.MoveNext();
while(!tdc.recordset.EOF)
{
document.write(tdc.recordset.Fields.Item(0).Value);
tdc.recordset.MoveNext();
}
</script>

</body>

</html


*******And the Data.txt's contents are:*********

Circle,stuff
Square,stuffer
Triangle,stuffit
X,stuffstuff
 
Hi Rouslan
Try changing this line:
Code:
<OBJECT ID=&quot;tdc&quot; CLASSID=&quot;CLSID:333C7BC4-460F-11D0-BC04-OO80C7055A83&quot;>
to this
Code:
<OBJECT ID=&quot;tdc&quot; CLASSID=&quot;CLSID:333C7BC4-460F-11D0-BC04-0080C7055A83&quot;>

Can't spot the difference?
You have two 'O' instead of '0'(zero) at the start of this bit:
0080C7055A83

That should then work. At least, it did for me!
Hope I helped / Thanks for helping
if ((x<10&&y<10) &&(((parseInt(x.toString()+y.toString())-x-y)%9)!=0)){ alert(&quot;I'm a monkey's uncle&quot;); }
 
[lol]
good eyes HellTel
you had me looking twice at that one until I read the bit on oo's ---------------------------------------
{ str = &quot;sleep is good for you. sleep gives you the energy you need to function&quot;;
ptr = /sleep/gi;Nstr = str.replace(ptr,&quot;coffee&quot;);alert(Nstr); }
---------------------------------------
for the best results to your questions: FAQ333-2924

 
Actually, my eyes are a bit blurry today! I'll blame it on my contact lenses and not the wine I was drinking last night!
[lol] Hope I helped / Thanks for helping
if ((x<10&&y<10) &&(((parseInt(x.toString()+y.toString())-x-y)%9)!=0)){ alert(&quot;I'm a monkey's uncle&quot;); }
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top