1

I have recently learnt how to input data to my webpage from a txt file using tag and DATASRC. However when using the following code, it only works in Internet Explorer.

<OBJECT ID="league"
     CLASSID="clsid:333C7BC4-460F-11D0-BC04-0080C7055A83"
     BORDER="0"
     WIDTH="0"
     HEIGHT="0">
 <PARAM NAME="DataURL" VALUE="div1.txt" />
 <PARAM NAME="UseHeader" VALUE="false" />
</OBJECT>
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <!--DWLayoutTable-->
    <tr> 
      <td><b>Team</b></td>
      <td width="30"><b>P</b></td>
      <td width="30"><b>W</b></td>
      <td width="30"><b>L</b></td>
      <td width="30"><b>F</b></td>
      <td width="30"><b>A</b></td>
      <td width="30"><b>Pts</b></td>
    </tr></table>

    <TABLE WIDTH="100%" DATASRC="#league" datapagesize="10" border="0" cellspacing="0" cellpadding="0">

 <TR>  
    <TD><SPAN DATAFLD="column1"></SPAN></TD>
    <TD width="30"><SPAN DATAFLD="column2"></SPAN></TD>      
    <TD width="30"><SPAN DATAFLD="column3"></SPAN></TD>
    <TD width="30"><SPAN DATAFLD="column4"></SPAN></TD>
    <TD width="30"><SPAN DATAFLD="column5"></SPAN></TD>
    <TD width="30"><SPAN DATAFLD="column6"></SPAN></TD>
    <TD width="30"><SPAN DATAFLD="column7"></SPAN></TD>
  </TR>
</TABLE>

Is there any way I can get Firefox, Chrome, and the iphone/ipad to see the data that is imported?

I have very basic html and css skills but learning all the time. I was going to use PHP but the server doesn't support it.

Any suggestions would be helpful otherwise I will have to continue importing tabular data in dreamweaver.

cheers Richard


Internal window's selection object is a sort of singleton, that is every getSelection() call returns the same reference to the same object. Thus, you have to manually grab all the data you need, or clone the object, but do not store the immediate result.

4

0 に答える 0