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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Data Binding w/DHTML

Status
Not open for further replies.

Wiggy1

Programmer
Jun 6, 2003
1
US
Hi I am very new to DHTML. 2 days to be exact. I hopefully have a simple issue to resolve. I am trying to connect to a MySql database using DHTML and the Microsoft RDS DSO. I want to use Data Bound Objects on my page to display data and I can't figure out why this isn't working. The code that I have so far is below. I'm not getting an error when the page loads. I just don't get any data.




<Html>
<Body>

<TABLE DATASRC=#dsoComposer>
<TR>
<TD><DIV DATAFLD=FieldName></DIV></TD>
</TR>
</TABLE>


<OBJECT classid=&quot;clsid:BD96C556-65A3-11D0-983A-00C04FC29E33&quot;
ID=dsoComposer HEIGHT=0 WIDTH=0>
<PARAM NAME=&quot;Server&quot; VALUE=&quot;localhost&quot;>
<PARAM NAME=&quot;Connect&quot; VALUE=&quot;dsn=dbName;uid=User;pwd=Pass&quot;>
<PARAM NAME=&quot;SQL&quot; VALUE=&quot;select Field from Table&quot;>
</OBJECT>

<SCRIPT>
function window.onload()
{
dsoComposer.open;
}

</SCRIPT>
</Body>
</Html>


 
Wiggy1,

I just got into this kind of thing myself... using HTML tables, though, because nothing I tried to do using Access or SQL wanted to work, and getting it to work, ASAP, is the only thing that matters (it's for development, so nobody's actually accessing it across the network, because the development environments are completely isolated).

The problem I ran into when using HTML tables was that the source data was already formatted as a table, and nothing wanted to work. I've implemented a test case &quot;by-the-book&quot; using simple SPAN tags, and everything works fine, and according to everything I've read, any tag that has a closing tag will work. However, when I load the page, the only part of the table I get is the table header.

Hang on... I just had a thought. Maybe the
Code:
<th>
tags in the source table are what's screwing it up on my end (because the tags aren't all the same). I don't think this should make any difference, but I'm gonna ditch those lines and try it again. If anybody else out there has any advice for either of us, it would be much appreciated.

JavaStripped
&quot;I did *not* escape. They gave me a day pass.&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top