473,800 Members | 3,038 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

live hyperlinks and Tabular Data Control (tdc) that ships with IE4.0.

can anyone add live hyperlinks to the sortable table made by the code
supplied by Machi, or know of a simple alternative
bob
Machi wrote Mar 10 1999, 8:00 am
>>>>>>>>> >

....
Hello Harjinder!
Not sure if you had this in mind or not. This is an example of
data binding and sorting using the Tabular Data Control (tdc)
that ships with IE. Please note that this will only work with IE.
Copy each section. Save the first with any name you like, but you
must save the second section (the comma delimited list) as
"docList.tx t" because it's the source of the data and that name
is coded into the .html page.
--CUT 'N PASTE HTML--
<HTML>
<HEAD>
<TITLE></TITLE>
</HEAD>
<BODY>
<!-- The following is the Tabular Data Control (tdc) that ships
with IE4.0. As such this will only work with IE4.0
-->
<OBJECT id="docList"
classid="clsid: 333C7BC4-460F-1*1D0-BC04-0080C7055A83"
align="baseline " border="0" width="0" height="0">
<param name="DataURL" value="docList. txt">
<param name="UseHeader " value="True">
</OBJECT>
<!-- Define your table and dynamically fill the cells with the
items from the "DataURL" source, here "docList.tx t"
-->
<TABLE border="1" id="tblDoc" datasrc="#docLi st">
<THEAD> <TR>
<TD><DIV id=docName><but ton
style="width:12 0;">Name</butto*n></DIV></TD>
<TD><DIV id=docDate><but ton
style="width:12 0;">Date</butto*n></DIV></TD>
<TD><DIV id=docSize><but ton style="width:12 0;">Size
(kb)</button></DIV></TD>
</TR>
</THEAD><TBODY> <TR>
<TD align=right><SP AN DATAFLD="docNam e"></SPAN></TD>
<TD align=right><DI V DATAFLD="docDat e"></DIV></TD>
<TD align=right><SP AN DATAFLD="docSiz e"></SPAN></TD>
</tr>
</TBODY></TABLE>
<SCRIPT LANGUAGE="JavaS cript">
<!-- Functions for sorting the columns -->
function srtName() {
docList.SortCol umn = "docName";
docList.Reset() ;
}
docName.onclick = srtName;
function srtDate() {
docList.SortCol umn = "docDate";
docList.Reset() ;

}
docDate.onclick = srtDate;
function srtSize() {
docList.SortCol umn = "docSize";
docList.Reset() ;

}
docSize.onclick = srtSize;
</SCRIPT>
</BODY>
</HTML>
-- END HTML--

---CUT 'N PASTE TEXT--
docName:STRING, docDate:DATE,do *cSize:INT
index.html,03/01/1999,36
toc.html,11/20/1998,51
help.html,11/21/1998,24
source.html,10/15/1998,32
myStyle.css,12/16/1998,20
funct.js,01/16/1999,10
ie.js,02/16/1999,5
ns.js,02/17/1999,4
nav.gif,09/14/1997,22
rArrow.gif,03/12/1997,31
lArrow.gif,03/13/1997,34
--END OF TEXT FILE--
HTH
-Machi
<<<<<<<<<<<<<<< <<<<<<<<<

Jul 23 '05 #1
4 2182
No, not in Javascipt

bo*******@ukonl ine.co.uk wrote:
can anyone add live hyperlinks to the sortable table made by the code
supplied by Machi, or know of a simple alternative
bob
Machi wrote Mar 10 1999, 8:00 am
>>>>>>>>>> >

...
Hello Harjinder!
Not sure if you had this in mind or not. This is an example of
data binding and sorting using the Tabular Data Control (tdc)
that ships with IE. Please note that this will only work with IE.
Copy each section. Save the first with any name you like, but you
must save the second section (the comma delimited list) as
"docList.tx t" because it's the source of the data and that name
is coded into the .html page.
--CUT 'N PASTE HTML--
<HTML>
<HEAD>
<TITLE></TITLE>
</HEAD>
<BODY>
<!-- The following is the Tabular Data Control (tdc) that ships
with IE4.0. As such this will only work with IE4.0
-->
<OBJECT id="docList"
classid="clsid: 333C7BC4-460F-1*1D0-BC04-0080C7055A83"
align="baseline " border="0" width="0" height="0">
<param name="DataURL" value="docList. txt">
<param name="UseHeader " value="True">
</OBJECT>
<!-- Define your table and dynamically fill the cells with the
items from the "DataURL" source, here "docList.tx t"
-->
<TABLE border="1" id="tblDoc" datasrc="#docLi st">
<THEAD> <TR>
<TD><DIV id=docName><but ton
style="width:12 0;">Name</butto*n></DIV></TD>
<TD><DIV id=docDate><but ton
style="width:12 0;">Date</butto*n></DIV></TD>
<TD><DIV id=docSize><but ton style="width:12 0;">Size
(kb)</button></DIV></TD>
</TR>
</THEAD><TBODY> <TR>
<TD align=right><SP AN DATAFLD="docNam e"></SPAN></TD>
<TD align=right><DI V DATAFLD="docDat e"></DIV></TD>
<TD align=right><SP AN DATAFLD="docSiz e"></SPAN></TD>
</tr>
</TBODY></TABLE>
<SCRIPT LANGUAGE="JavaS cript">
<!-- Functions for sorting the columns -->
function srtName() {
docList.SortCol umn = "docName";
docList.Reset() ;
}
docName.onclick = srtName;
function srtDate() {
docList.SortCol umn = "docDate";
docList.Reset() ;

}
docDate.onclick = srtDate;
function srtSize() {
docList.SortCol umn = "docSize";
docList.Reset() ;

}
docSize.onclick = srtSize;
</SCRIPT>
</BODY>
</HTML>
-- END HTML--

---CUT 'N PASTE TEXT--
docName:STRING, docDate:DATE,do *cSize:INT
index.html,03/01/1999,36
toc.html,11/20/1998,51
help.html,11/21/1998,24
source.html,10/15/1998,32
myStyle.css,12/16/1998,20
funct.js,01/16/1999,10
ie.js,02/16/1999,5
ns.js,02/17/1999,4
nav.gif,09/14/1997,22
rArrow.gif,03/12/1997,31
lArrow.gif,03/13/1997,34
--END OF TEXT FILE--


HTH
-Machi
<<<<<<<<<<<<<<< <<<<<<<<<


Jul 23 '05 #2
Bob,

You don't have to use a data-bound table - you can just reconstruct
the HTML for the table by getting the cell values from the DSO. Then
you can add whatever formatting (links etc) you want to.

or...

Let the data-bound table refresh on sort, and then update the contents
to include the links you want.

Tim.
bo*******@ukonl ine.co.uk wrote:
can anyone add live hyperlinks to the sortable table made by the
code
supplied by Machi, or know of a simple alternative
bob
Machi wrote Mar 10 1999, 8:00 am
>>>>>>>>>> >

...
Hello Harjinder!
Not sure if you had this in mind or not. This is an example of
data binding and sorting using the Tabular Data Control (tdc)
that ships with IE. Please note that this will only work with IE.
Copy each section. Save the first with any name you like, but you
must save the second section (the comma delimited list) as
"docList.tx t" because it's the source of the data and that name
is coded into the .html page.
--CUT 'N PASTE HTML--
<HTML>
<HEAD>
<TITLE></TITLE>
</HEAD>
<BODY>
<!-- The following is the Tabular Data Control (tdc) that ships
with IE4.0. As such this will only work with IE4.0
-->
<OBJECT id="docList"
classid="clsid: 333C7BC4-460F-1*1D0-BC04-0080C7055A83"
align="baseline " border="0" width="0" height="0">
<param name="DataURL" value="docList. txt">
<param name="UseHeader " value="True">
</OBJECT>
<!-- Define your table and dynamically fill the cells with the
items from the "DataURL" source, here "docList.tx t"
-->
<TABLE border="1" id="tblDoc" datasrc="#docLi st">
<THEAD> <TR>
<TD><DIV id=docName><but ton
style="width:12 0;">Name</butto*n></DIV></TD>
<TD><DIV id=docDate><but ton
style="width:12 0;">Date</butto*n></DIV></TD>
<TD><DIV id=docSize><but ton style="width:12 0;">Size
(kb)</button></DIV></TD>
</TR>
</THEAD><TBODY> <TR>
<TD align=right><SP AN DATAFLD="docNam e"></SPAN></TD>
<TD align=right><DI V DATAFLD="docDat e"></DIV></TD>
<TD align=right><SP AN DATAFLD="docSiz e"></SPAN></TD>
</tr>
</TBODY></TABLE>
<SCRIPT LANGUAGE="JavaS cript">
<!-- Functions for sorting the columns -->
function srtName() {
docList.SortCol umn = "docName";
docList.Reset() ;
}
docName.onclick = srtName;
function srtDate() {
docList.SortCol umn = "docDate";
docList.Reset() ;

}
docDate.onclick = srtDate;
function srtSize() {
docList.SortCol umn = "docSize";
docList.Reset() ;

}
docSize.onclick = srtSize;
</SCRIPT>
</BODY>
</HTML>
-- END HTML--

---CUT 'N PASTE TEXT--
docName:STRING, docDate:DATE,do *cSize:INT
index.html,03/01/1999,36
toc.html,11/20/1998,51
help.html,11/21/1998,24
source.html,10/15/1998,32
myStyle.css,12/16/1998,20
funct.js,01/16/1999,10
ie.js,02/16/1999,5
ns.js,02/17/1999,4
nav.gif,09/14/1997,22
rArrow.gif,03/12/1997,31
lArrow.gif,03/13/1997,34
--END OF TEXT FILE--
HTH
-Machi
<<<<<<<<<<<<<<< <<<<<<<<<

Jul 23 '05 #3
hi Tim,
can you speak dumbo?
what is DSO?

my attempt borrowing code from:
http://www.ncat.edu/~esterlin/c600s01/Notes/Ch18.pdf.

was simply to add links to DBPublications1 .txt

content of DBPublications1 .txt :
@Title@| @Authors@|@Copy right@|@Edition @|@Type@
@50525 173201@|@ISP@|@ mail@|@ <a href="Http://ukonline.co.uk" >ukol</a>
@|@Example:.@
@50526 152934@|@D,D@|@ xxxx@|@<a
href="http://www.wlv.ac.uk/~a9722107">WHam pton</a>@|@note@
@C++ HtP@|@D,D@|@199 4@|@ http://ukonline.co.uk @|@BK@
@C++ HtP@|@D,D@|@199 8@|@2@|@BK@
@Java HtP@|@D,D@|@199 7@|@1@|@BK@
and hope the following would show live links:

<HTML><HEAD><TI TLE> Sorting and Filtering</TITLE>

<OBJECT ID = "Publicatio ns"
CLASSID = "CLSID:333C 7BC4-460F-11D0-BC04-0080C7055A83">
<PARAM NAME = "DataURL" VALUE = "DBPublications 1.txt">
<PARAM NAME = "UseHeader" VALUE = "TRUE">
<PARAM NAME = "TextQualif ier" VALUE = "@">
<PARAM NAME = "FieldDelim " VALUE = "|">
<PARAM NAME = "Sort" VALUE = "+Title">
</OBJECT>

<STYLE>
A { font-size: 9pt; text-decoration: underline; cursor: hand; color:
blue }
CAPTION { cursor: hand; }
SPAN { cursor: hand; }
</STYLE>

<SCRIPT LANGUAGE = "JavaScript ">
var sortOrder; function reSort( column, order )
{if ( order ) sortOrder = ""; else sortOrder = "-";
if ( event.ctrlKey )
{Publications.S ort += "; " + sortOrder + column;
Publications.Re set(); }
else
{Publications.S ort = sortOrder + column;
Publications.Re set(); }
spanSort.innerT ext = "Current sort: " + Publications.So rt; }

function filter( filterText, filterColumn )
{Publications.F ilter = filterColumn+ "=" + filterText;
Publications.Re set();
spanFilter.inne rText = "Current filter: " + Publications.Fi lter; }

function clearAll()
{Publications.S ort = " ";
spanSort.innerT ext = "Current sort: None";
Publications.Fi lter = " ";
spanFilter.inne rText = "Current filter: None";
Publications.Re set(); }

</SCRIPT> </HEAD>

<BODY>
<H1>Advanced Sorting</H1>
Click on the link next to a column head to sort by that column.
To sort by more than one column at a time, hold down CTRL
while you click another sorting link. Click on any cell to filter
by the data of that cell. To clear filters and sorts, click on the
green caption bar.
<a href="Http://ukonline.co.uk" >ukonline>uko l</a>
<TABLE DATASRC = "#Publicati ons"
BORDER = 1 CELLSPACING = 0 CELLPADDING = 2
STYLE = "background-color: papayawhip;">
<CAPTION STYLE = "background-color: lightgreen; padding: 5"
ONCLICK = "clearAll() ">
<SPAN ID = "spanFilter "
STYLE = "font-weight: bold; background-color: lavender"> Current
filter: None</SPAN>
<SPAN ID = "spanSort"
STYLE = "font-weight: bold; background-color: khaki"> Current sort:
None </SPAN>
</CAPTION>

<THEAD> <TR> <TH>Title <BR>
(<A ONCLICK = "reSort( 'Title', true )"> Ascending</A>
<A ONCLICK = "reSort( 'Title', false )"> Descending</A>)
</TH>
<TH>Authors <BR>
(<A ONCLICK = "reSort( 'Authors', true )"> Ascending</A>
<A ONCLICK = "reSort( 'Authors', false )"> Descending</A>)
</TH>
<TH>Copyright <BR>
(<A ONCLICK = "reSort( 'Copyright', true )"> Ascending</A>
<A ONCLICK = "reSort( 'Copyright', false )"> Descending</A>)
</TH>
<TH>Edition <BR>
(<A ONCLICK = "reSort( 'Edition', true )"> Ascending</A>
<A ONCLICK = "reSort( 'Edition', false )"> Descending</A>)
</TH>
<TH>Type <BR>
(<A ONCLICK = "reSort( 'Type', true )"> Ascending</A>
<A ONCLICK = "reSort( 'Type', false )"> Descending</A>)
</TH> </TR>
</THEAD>

<TR>
<TD><SPAN DATAFLD = "Title"
ONCLICK = "filter( this.innerText, 'Title' )"> </SPAN></A> </TD>
<TD><SPAN DATAFLD = "Authors"
ONCLICK = "filter( this.innerText, 'Authors')"> </SPAN> </TD>
<TD><SPAN DATAFLD = "Copyright"
ONCLICK = "filter( this.innerText, 'Copyright' )"> </SPAN> </TD>
<TD><SPAN DATAFLD = "Edition"
ONCLICK = "filter( this.innerText, 'Edition' )"> </SPAN> </TD>
<TD><SPAN DATAFLD = "Type"
ONCLICK = "filter( this.innerText, 'Type' )"> </SPAN> </TD>
</TR>
</TABLE>
</BODY>
</HTML>

the links appear but simply as text
thanks for your tips but im too green to follow them

bob
Tim Williams wrote:
Bob,

You don't have to use a data-bound table - you can just reconstruct
the HTML for the table by getting the cell values from the DSO. Then
you can add whatever formatting (links etc) you want to.

or...

Let the data-bound table refresh on sort, and then update the contents
to include the links you want.

Tim.


Jul 23 '05 #4
Tim

if I
reconstruct the HTML for the table by getting the cell values from the DSO.
<<
would i still have sortability

its not to clear to me why to
Let the data-bound table refresh on sort, and then update the contents

to include the links <<<
will make the links active
thankyou

bob

Jul 23 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2431
by: James Broome | last post by:
Hello, I am using the TDC Active X object to display a results set from a txt file. I have a simple search form which builds up a filter string before the tdc control is reset. e.g. var filterstr = 'name = *SMITH*'; window.parent.frames(2).document.all.tdc.filter=filterstr;
10
15706
by: Imran | last post by:
Hi, I am attempting to create a CSS-driven website, in that I want to be able to control the display/content from the CSS file. I do not want to use tables. On a page, I have a background image (that contains smaller images) and I would like to assign the smaller images as hyperlinks. What is the best way to do this? I know I can use an imagemap, but is
6
3966
by: Colleyville Alan | last post by:
I have an application that has an Access table that stores the locations of slides in a Powerpoint file. This used to work fine when there were about 4 files and 200 slides. The database would open all four PPT files at once, and would loop through queriers for ever client and create custom presentations. Now there are 8 files, nearly 500 slides and the computer is bogging down with trying to open them all at once. I know that Access...
1
1267
by: Don | last post by:
In my code I'm dynamically creating a GridView control and binding it to a DataView object that I create form a DataSet that I get from a web service call. It seems that no matter what I do I can not get the sort hyperlinks in the header row to show up. I've set AllowSorting to true and various other things but no matter what I do I can't get them to show up. Does sorting only work with the new SqlDataSource and related objects in ASP.NET...
1
1366
by: rcoco | last post by:
Hi all, I have this big problem with hyperlinks I would appriciate any help please. My web site has two datagrids on the same page. And one has a list of names of the users which are in form of hyperlinks. The second datagrid is for inserting data, and when a user inserts data I used 'Windows Authentication' for names in one column called Name. Now this is how it's supposed to work: When any user want to see data about a particular...
38
3315
by: Sanders Kaufman | last post by:
I'm converting my table-based layouts to css-positioned divs - but the ONLY reason I'm doing it is because it's *considered* a best practice. I don't really see where anything goes hinky when tables are used - but I'm doing it anyway because the HTML and CSS specs says to reserve tables for tabular data. So as I convert my login widgit to a css thing, I'm saying to myself - hey, this form is most certainly "tabular data" - even if it...
1
1942
by: sheldonlg | last post by:
I have inherited code with a TDC control. In this file, there are two javascripts of interest. One of these is a function, filter(), which is inside <script language=javascript></script>. The other is code inside <script language=javascript FOR=inquiry event=ondatasetcomplete()></script> where inquiry is the TDC.
1
2038
by: LBLB | last post by:
In terms of processing speed, what is the best method for displaying tabular data from a database in a Windows forms C# app? We generally use data grids (Infragistics WinGrid), but have an instance where run-time performance MUST be optimal - coding complexity and other things are less important. Here are some paticulars: 1. Data is stored in SQL Server. 2. Data is read-only. 3. The container/control must allow for mouse-click event handling...
0
10501
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10273
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10250
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9085
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7574
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6811
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5469
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5603
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4149
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.