[Home] [By Thread] [By Date] [Recent Entries]

  • From: Andy Lui <andy_Lui@b...>
  • To: XML-DEV List <xml-dev@l...>
  • Date: Sun, 24 Jun 2001 00:54:42 +0800

Hello all,

May anyone know how to pass the XML Applet's record Field as the script
parameters.

I want to passing the XML's Field "ShowHelpText" to the script to display the
text in the AreaText.

BUT I have checked the value with loaded in the onMouseOver Event as followed,

     <a

        onMouseOver="ShowAttribText(datafld=<span datafld=URL></span>)"

        onMouseOut="hide()"
        target="_self"
        href=<span datafld=URL></span>
        <span datafld=Label></span></a></td>

Thanks all,

From Andy Lui

--------------------------------------------------------------------------------
-------------------------------------
Source Code as below
--------------------------------------------------------------------------------
-------------------------------------
...........
<SCRIPT language=JavaScript><!--
  function hide() {
    document.all("ONE").value = '';
  }

  function ShowAttribText(xText) {
    document.all("ONE").value = xText;
  }
//-->
</SCRIPT>
........
<applet code=com.ms.xml.dso.XMLDSO.class width=0 height=0 id=GuidanceNote>
  <param name="url" value="GuidanceNote.xml">
</applet>

........
  <table id=cc1 cellspacing="0" cellpadding="0" datasrc=#GuidanceNote>
  <tr>
  <td width="10" bgcolor="white"></td>
  <td width="190" height="22">
     <a

        onMouseOver="ShowAttribText(datafld=<span datafld=ShowHelpText></span>)"

        onMouseOut="hide()"
        target="_self"
        href=<span datafld=URL></span>
        <span datafld=Label></span></a></td>
  </tr>
  </table>
  </td>
</tr>
</table>

  <table>
  <tr>
  <td width="20" bgcolor="green"></td>

    <textarea name="ONE" width="200" rows="6" ></textarea>
    </td>

  <td width="20" bgcolor="green"></td>
  </tr>
  </table>

.........

</html>



Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member