I think you should try other name for your variable - not the same as was div id.
Krzysztof

On 01-02-12 at 08:02 Russell Clary wrote:

>I was using DynAPI succesfully, but want to move to DynAPI2 to take advantage
>of it's new features. So, please excuse this newbie question:
>
>I am dynamically building pages with ASP and include files that contain inline
>layers. I am trying to implement the 1-25-2001 DynAPI2 code. Beacause the pages
>are dynamically built, I don't know which DIV's will or will not be on any
>given page, thereby making it difficult to explicitly define each layer by
>
>----------------
>DynAPI.onLoad=function() {
>       var layer1 = this.document.all['layer1']
>        ...
>----------------
>
>     or by
>
>----------------
>var dd = new DynDocument('layer1');
>----------------
>
>I tried the following code, but it didn't work either:
>
>----------------
><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>
></head>
>
><body>
><div id="layer1" style="position:absolute; left:300; top:100; width:200;
>background-color:#eeeeee; layer-background-color:#eeeeee; z-index:1;
>visibility:hidden;">
>   This is a test
></div>
>
><table border="1" cellspacing="0" cellpadding="0" width="200">
><tr><td><a href="javascript:layer1.setVisible(true)">Layer1 show</a></td></tr>
><tr><td><a href="javascript:layer1.setVisible(false)">Layer1 hide</a></td></tr>
></table>
>
></body>
>----------------
>
>I was hoping that the inline.js would find the inline DIV's, assign them as a
>DynLayer to the ID given in the DIV tag, and I could manipulate it from there
>(as I tried to in the above code), but that's not the case...at least not the
>way I'm doing it! 8-)
>
>Can someone please get me pointed the right direction here? Thanks for your
>patience and time,
>
>Russell
>
>
>
>__________________________________________________
>Do You Yahoo!?
>Get personalized email addresses from Yahoo! Mail - only $35
>a year!  http://personal.mail.yahoo.com/
>
>_______________________________________________
>Dynapi-Help mailing list
>[EMAIL PROTECTED]
>http://lists.sourceforge.net/lists/listinfo/dynapi-help




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

Reply via email to