emyHamed / ff-activex-host

Automatically exported from code.google.com/p/ff-activex-host
0 stars 0 forks source link

Tabular Data Control #1

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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?

Original issue reported on code.google.com by Bernstei...@ccsu.edu on 8 Dec 2008 at 7:22

GoogleCodeExporter commented 8 years ago
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>

Original comment by leeor.ah...@gmail.com on 9 Dec 2008 at 12:41

GoogleCodeExporter commented 8 years ago
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 </font><a 
class="menubar" href="#" title="Sort Ascending" onClick="reSort
('Author',true);">▲</a><a class="menubar" href="#" title="Sort Descending" 
onClick="reSort('Author',false);">▼</a></TH>
<TH align="left" bgcolor="#3356A2"><font color="white">Title </font><a 
class="menubar" href="#" title="Sort Ascending" onClick="reSort
('Title',true);">▲</a><a class="menubar" href="#" title="Sort Descending" 
onClick="reSort('Title',false);">▼</a></TH>
<TH align="left" bgcolor="#3356A2"><font color="white">Year </font><a 
class="menubar" href="#" title="Sort Ascending" onClick="reSort
('Year',true);">▲</a><a class="menubar" href="#" title="Sort Descending" 
onClick="reSort('Year',false);">▼</a></TH>
<TH align="left" bgcolor="#3356A2"><font color="white">Annotations </font><a 
class="menubar" href="#" title="Sort Ascending" onClick="reSort
('Annotations',true);">▲</a><a class="menubar" href="#" title="Sort 
Descending" onClick="reSort('Annotations',false);">▼</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 Tab Plugin</a>.</DIV></TD>
<TD valign="top" width="100" style="border-bottom: 1px solid #000000"><DIV 
DATAFLD="Year" dataformatas="HTML"> </DIV></TD>
<TD valign="top" width="150" style="border-bottom: 1px solid #000000"><DIV 
DATAFLD="Annotations" dataformatas="HTML"> </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

Original comment by Bernstei...@ccsu.edu on 9 Dec 2008 at 2:36

Attachments:

GoogleCodeExporter commented 8 years ago
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.

Original comment by leeor.ah...@gmail.com on 9 Dec 2008 at 4:51

GoogleCodeExporter commented 8 years ago
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.

Original comment by Bernstei...@ccsu.edu on 9 Dec 2008 at 5:03

GoogleCodeExporter commented 8 years ago
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.

Original comment by leeor.ah...@gmail.com on 9 Dec 2008 at 6:32

GoogleCodeExporter commented 8 years ago
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!

Original comment by Bernstei...@ccsu.edu on 9 Dec 2008 at 7:25

GoogleCodeExporter commented 8 years ago

Original comment by leeor.ah...@gmail.com on 6 Feb 2009 at 1:20