|
Hi. I have been trying to use the DynApi today to
implement a scrollable window. I have a lot of dynamic text that comes
from a database and may contain a lot of quotes. so as far as I understand
this rules out creating a layer using the .setText method. I have been
trying to use inline method but have not been successful. Below is a
simple, slightly modified example form the code examples on the dynapi
site. Could someone please tell me how to make this work? The error
I get is Line: 0 Object does not support this property or method.
Also, it seems that you cannot have an onLoad() in
the body tag of an html page when using the dynapi. Is this correct?
Thanks very much for any help.
Greg
<html>
<head> <title>DynAPI Distribution: Inline Layers Example</title> <script language="JavaScript"
src="./src/dynapi.js"></script>
<script language="Javascript"> DynAPI.setLibraryPath('./src/lib/') DynAPI.include('dynapi.api.*') DynAPI.include('dynapi.ext.inline.js') </script> <script language="Javascript"> DynAPI. {
var layer1 = this.document.all['layer1'] layer1.moveTo(100,100) layer1.setBgColor('#F8F8F8') layer1.setVisible(true) var myevent1 = new
EventListener(this.document)
myevent1. { alert('Click') } layer1.addEventListener(myevent1) } </script>
</head> <body>
<div id="layer1" style="position:absolute; visibility:hidden">This is a test</div> <!-- ******** how can I get this href to work ***************--> <a href="javascript:layer1.setBgColor('red')">Change Color</a> </body>
</html> |
- Re: [Dynapi-Help] question for new user Greg Jacobson
- Re: [Dynapi-Help] question for new user Richard Bennett
- Re: [Dynapi-Help] question for new user Doug Melvin
- RE: [Dynapi-Help] question for new user Jon McLennan
- RE: [Dynapi-Help] question for new user Darryl Cousins
- RE: [Dynapi-Help] question for new user Pascal Bestebroer
- RE: [Dynapi-Help] question for new user martin str�m
- RE: [Dynapi-Help] question for new user Greg Jacobson
- RE: [Dynapi-Help] question for new user Pascal
