Hi, The cross browser DHTML stuff that one can achieve with DynAPI is terrific
However cannot get the foll to work in Netscape 4.7. Any clues will be appreciated. (I use DynAPI 2.5.7 from SourceForge.net) In my web page I want to have a scrollable area with the content coming from an external file (maybe html/ jsp/ ...) So developed a web page on the lines of the sample dynapi.gui.scrollpane.html I removed the label objects that are created in the onLoad and replaced it with a LoadPanel. Created (without the content parameter) and added a ScrollPane object to the document. Provided a link on the web page to set the LoadPanel as a content of the ScrollPane and a link to load an external file into the LoadPanel. When viewed in a browser works with the links clicked in the following order.... 1. An empty scroll pane (with gray background) without scroll bars is seen on load. 2. When setContent is clicked an empty LoadPanel with a red background is added to the scroll pane. The scroll bars show automatically and they work! 3. When setURL is clicked an external file is loaded into the LoadPanel which resizes with resulting resizing of the scroll pane as well. But now in Netscape Communicator 4.7 the scroll bars refuse to function. (They used to function before the setURL function of the loadPanel is invoked.) In IE 5.5 there is no problem the scrolling is perfect. With a little bit of debugging found that in Netscape I can achieve scrolling by calling invokeEvent('mousedown') on the scrollbar buttons. It seems in Netscape (after the external document loads) there is some transparent layer on top of the scrollbars due to which they do not receive the mouse clicks. Any clues as to how to remove this transparent layer ? I tried to bring the scroll bar to the top by setting its zIndex but no success. Source code: <pre> <html><head> <script language="Javascript"> DynAPI.setLibraryPath('../src/lib/'); DynAPI.include('dynapi.api.*'); DynAPI.include('dynapi.event.*') DynAPI.include('dynapi.util.thread.js'); DynAPI.include('dynapi.util.pathanim.js'); DynAPI.include('dynapi.gui.dynimage.js'); DynAPI.include('dynapi.gui.button.js'); DynAPI.include('dynapi.gui.scrollbar.js'); DynAPI.include('dynapi.gui.label.js'); DynAPI.include('dynapi.gui.viewport.js'); DynAPI.include('dynapi.gui.scrollpane.js'); DynAPI.include('dynapi.gui.loadpanel.js'); </script> <script language="Javascript"> DynAPI.onLoad = function() { lp = new LoadPanel(); lp.setHTML("no file loaded"); lp.setSize(800,100); // height will be overwritten by default lp.moveTo(100,100); lp.setBgColor('red'); lp.setAutoResizeHeight(true); lp.setAutoResizeWidth(true); counter = 0; var el = new EventListener(); el.onload = function(e) { status = 'got load event '+ counter++; } lp.addEventListener(el); scrollobj = new ScrollPane() // the loadpanel will be set as the content later. scrollobj.setSize(450,150) scrollobj.moveTo(250,50) scrollobj.setBgColor('#c0c0c0') DynAPI.document.addChild(scrollobj) } function setContentOfScrollPane() { scrollobj.setContent(lp) } function loadExternalDocument() { lp.setURL('tomcat.html') // any url can be substituted here; either absolute/ relative } </head><body> <a href="javascript:setContentOfScrollPane()">Set the Load Panel as the content of the scroll pane</a><br> <a href="javascript:loadExternalDocument()">Set the URL of the Load Panel </a><br> </body> </html> </pre> Rgds G1 ************************************************************************** This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. ************************************************************************** ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Dynapi-Help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dynapi-help