Try #2.

I'm new to DynAPI, and reasonably new to Dynamic HTML.  In the following
HTML file, I can't get my "textEditDiv" to move.  It says it moved, but it
doesn't move on my screen.  I can get it show/hide, but not to move.
Suggestions please...

Thanks
David Corbin
---cut---
    <HTML>
 <HEAD>
 <META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
 <SCRIPT language=Javascript src="test_files/dynapi.js"></SCRIPT>
 <SCRIPT language=Javascript>
   DynAPI.setLibraryPath('http://localhost/dyn/lib')
   DynAPI.include('dynapi.api.browser.js')
   DynAPI.include('dynapi.api.dynlayer.js')
   DynAPI.include('dynapi.api.dyndocument.js')
   DynAPI.include('dynapi.event.*')
   DynAPI.include('dynapi.ext.*')
  </SCRIPT>

  <SCRIPT language=Javascript>
   var textEditLayer = null;
   var sheetLayer = null;

   DynAPI.onLoad = function()
   {
    textEditLayer = this.document.getAll()["textEditDiv"];
    sheetLayer = this.document.getAll()["sheetDiv"];
   }
  </SCRIPT>

  <SCRIPT>
  function showTextEdit()
  {
   textEditLayer.setWidth(300,false);
   alert("Before move: ("+textEditLayer.x+","+textEditLayer.y+")");
   textEditLayer.moveTo(200,10)
   alert("After move: ("+textEditLayer.x+","+textEditLayer.y+")");
  }
  </SCRIPT>

 <BODY>
  <DIV id=sheetDiv>
   <TABLE cellSpacing=0>
    <TR>
     <TD width="150">
       Now is the time for all good men to come to the aid of their country
       Now is the time for all good men to come to the aid of their country
       <A href="javascript:showTextEdit()">Click Here</A>
       Now is the time for all good men to come to the aid of their country
       Now is the time for all good men to come to the aid of their country
       Now is the time for all good men to come to the aid of their country
     </TD>
    </TR>
   </TABLE>
  </DIV>
  <DIV id=textEditDiv style="width: 300px; BACKGROUND-COLOR: #ccccff;
postition: absolute">
   <FORM name=textEdit>
    Test panel test panel test panel
    Test panel test panel test panel
    Test panel test panel test panel
    Test panel test panel test panel
   </FORM>
  </DIV>
 </BODY>
</HTML>





_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to