My favorites | Sign in
Project Home Downloads
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 1: Tabular Data Control
1 person starred this issue and may be notified of changes. Back to list
Status:  Invalid
Owner:  leeor.ah...@gmail.com
Closed:  Dec 2008


 
Reported by Bernstei...@ccsu.edu, Dec 8, 2008
I am trying to use this plugin to allow the <a 
href="http://msdn.microsoft.com/en-us/library/ms531356
(VS.85).aspx">Tabular Data Control</a> to be used in FireFox.  I've 
installed the plugin, but it does not seem to be working.  Is there 
something I'm doing wrong, or does the plugin not support this particular 
ActiveX control?
Dec 8, 2008
Project Member #1 leeor.ah...@gmail.com
I've tried to use the TDC control with the following html object:

  <object
      id="Control"
      TYPE="application/x-itst-activex"
      ALIGN="baseline" BORDER="0"
      WIDTH="300" HEIGHT="300"
      clsid="{333C7BC4-460F-11D0-BC04-0080C7055A83}"
      param_DataURL="c:\\downloads\\tdc.txt"
      param_UseHeader="true"/>
  </object>

While no table was displayed for me, I could access properties of the object (such as
DataURL and UseHeader). This leads me to suspect that some other issue is preventing
the control from reading and displaying the data. Currently I suspect it is security
related, and has to do with cross domain issues. Is your data file hosted on the same
web site that hosts the web page using this control?
The 'Relaxing TDC Security' might offer clues to this issue.

For now, it seems like the control is loaded and accessible. Is it working ok in IE
with the same parameters?

Using the same parameter, I could not get it to work in IE either, although I suspect
it was loaded properly (lack of firebug prevents me from actually testing it atm).
Here's what I used for IE:

  <object
      id="Control"
      ALIGN="baseline" BORDER="0"
      WIDTH="300" HEIGHT="300"
      classid="CLSID:333C7BC4-460F-11D0-BC04-0080C7055A83"
      DataURL="c:\\downloads\\tdc.txt"
      UseHeader="true"/>
  </object>

Dec 9, 2008
#2 Bernstei...@ccsu.edu
The data file is in the very same directory as the page that is using this control.  
As far as the table not displaying, you need to create the table.  The control then 
populates it with data.  I have used the following code and it works fine in IE, but 
still not in FireFox:

<html>
<head>
<title>Test</title>
</head>
<body>
<object
 id="TDC"
 CLASSID="clsid:333C7BC4-460F-11D0-BC04-0080C7055A83"
 TYPE="application/x-itst-activex"
 clsid="{333C7BC4-460F-11D0-BC04-0080C7055A83}"
 param_DataURL="data.txt"
 param_UseHeader="true"
 param_TextQualifier="~"
 param_FieldDelim=","
 param_CaseSensitive="false"
 param_sort="Title"
/>
	<PARAM NAME="TextQualifier" VALUE="~">
	<PARAM NAME="FieldDelim" VALUE=",">
	<PARAM NAME="DataURL" VALUE="data.txt">
	<PARAM NAME="UseHeader" VALUE="TRUE">
	<PARAM NAME="CaseSensitive" VALUE="false">
	<PARAM NAME="sort" VALUE="Title">
</object>
<TABLE BORDER="0" cellspacing="0" cellpadding="5" width="1000" DATASRC="#TDC" 
align="center">
<THEAD>
<FORM>
<TH align="left" bgcolor="#3356A2"><font color="white">Author&nbsp;</font><a 
class="menubar" href="#" title="Sort Ascending" onClick="reSort
('Author',true);">&#9650;</a><a class="menubar" href="#" title="Sort Descending" 
onClick="reSort('Author',false);">&#9660;</a></TH>
<TH align="left" bgcolor="#3356A2"><font color="white">Title&nbsp;</font><a 
class="menubar" href="#" title="Sort Ascending" onClick="reSort
('Title',true);">&#9650;</a><a class="menubar" href="#" title="Sort Descending" 
onClick="reSort('Title',false);">&#9660;</a></TH>
<TH align="left" bgcolor="#3356A2"><font color="white">Year&nbsp;</font><a 
class="menubar" href="#" title="Sort Ascending" onClick="reSort
('Year',true);">&#9650;</a><a class="menubar" href="#" title="Sort Descending" 
onClick="reSort('Year',false);">&#9660;</a></TH>
<TH align="left" bgcolor="#3356A2"><font color="white">Annotations&nbsp;</font><a 
class="menubar" href="#" title="Sort Ascending" onClick="reSort
('Annotations',true);">&#9650;</a><a class="menubar" href="#" title="Sort 
Descending" onClick="reSort('Annotations',false);">&#9660;</a></TH>
</FORM>
</THEAD>
<TBODY>

<tr onmouseover="this.bgColor='#DFECF3';" onmouseout="this.bgColor='#FFFFFF';">
<TD valign="top" width="250" style="border-bottom: 1px solid #000000"><DIV 
DATAFLD="Author" dataformatas="HTML"><img 
src="http://campusone.ulster.ac.uk/images/plugins/explorer.gif" align="right" 
alt="This site requires Internet Explorer 4.0 or higher.  It will not work with 
Firefox."></DIV></TD>
<TD valign="top" width="500" style="border-bottom: 1px solid #000000"><DIV 
DATAFLD="Title" dataformatas="HTML" Title="Full Record">This site requires Internet 
Explorer 4.0 or higher.<br>If you have Internet Explorer 4.0 or higher installed, it 
can be viewed with Firefox 3.0 or higher using the <a 
href="https://addons.mozilla.org/en-
US/firefox/addon/1419">IE&nbsp;Tab&nbsp;Plugin</a>.</DIV></TD>
<TD valign="top" width="100" style="border-bottom: 1px solid #000000"><DIV 
DATAFLD="Year" dataformatas="HTML">&nbsp;</DIV></TD>
<TD valign="top" width="150" style="border-bottom: 1px solid #000000"><DIV 
DATAFLD="Annotations" dataformatas="HTML">&nbsp;</DIV></TD>
</tr>
</TBODY>
</TABLE>
</body>
</html>

The site that I am trying to get to work is 
http://library.ccsu.edu/about/departments/spcoll/oconnell/.  I am also attaching the 
files with which I am working.

בשלום,
Steven
data.txt
117 KB   View   Download
index.htm
19.8 KB   Download
Dec 9, 2008
Project Member #3 leeor.ah...@gmail.com
The index.htm file you attached is clearly the result of saving it from within
Firefox, and not the original sent by the server.

Also, bear in mind that this control DOES NOT allow just any ActiveX to be used in
Firefox. The web page that wants to use it needs to be written specifically in order
to make use of it. This is done for security reasons.

The index.htm file you attached contains a simple html object element that can be
used in IE but not in Firefox with this plugin. Please refer to the sample shown at
the main page of this project to see how an object element needs to be written in
order to work with this plugin.

When I converted your html to use a correct object element the ActiveX was loaded and
accessible. There were script errors though.

I'm closing this issue as invalid.
Status: Invalid
Dec 9, 2008
#4 Bernstei...@ccsu.edu
I'm a bit confused.  What do you mean by "The index.htm file you attached is clearly 
the result of saving it from within Firefox, and not the original sent by the 
server."

Also, how did you convert my HTML to use a correct object element such that the 
ActiveX was loaded and accessible?  I'm trying to figure out how to write by page 
specifically in order to make use of it.

Thanks.
Dec 9, 2008
Project Member #5 leeor.ah...@gmail.com
First of all, here's how I wrote an object element that loads the TDC control with
your parameters:
	<object ID="TDC" type="application/x-itst-activex"
CLSID="{333C7BC4-460F-11D0-BC04-0080C7055A83}"
		PARAM_TextQualifier="~"
		PARAM_FieldDelim=","
		PARAM_DataURL="data.txt"
		PARAM_UseHeader="TRUE"
		PARAM_CaseSensitive="false"
		PARAM_sort="Title">
	</object>

The type property tells firefox to use this plugin to handle this object, and the
clsid property tells the plugin which ActiveX to load.

The index.htm file you attached has a hardcoded string saying that this page requires
IE, and will only work in FF with the IETab extension. Now that is something that I'm
pretty sure Firefox will write when it comes across an ActiveX element. Either that,
or a server side script (more likely, IMHO) will write that string when it detects
that you are accessing it using Firefox and not IE.

HTH.

P.S. If you're not familiar with the Firefox extension called 'Firebug' I highly
recommend that you install it. It can be invaluable when writing and designing web
pages. Also, it has an interactive JavaScript interpreter so you can call methods and
test things on the fly.
Dec 9, 2008
#6 Bernstei...@ccsu.edu
The IETab plugin bit was my own.  I put it in there because I knew that the control 
would not load in FireFox.  I am hoping to use your plugin instead of IETab and when 
(if) I get this ActiveX control to work using your plugin, I will be directing FF 
users to your plugin.

I tried the object element as you wrote it and it still doesn't work.
I am a novice when it comes to these things so I really appreciate your patience.

P.S. I installed FireBug but--being the newbie that I am--I can't quite figure out 
how to use it to find the problem.

Once again, thanks!
Feb 6, 2009
Project Member #7 leeor.ah...@gmail.com
(No comment was entered for this change.)
Owner: leeor.aharon

Powered by Google Project Hosting