From: Seb <se...@sy...> - 2004-09-08 17:40:42
|
Hello list. First off, thanks for making this nice product. Once I figured out how to use it (mostly) it's great. I'm using the DynAPI 3 beta 1 from CVS. Couple of things.. first, and this may just be some bug or I am doing something wrong... if I put any text input form elements on a page, Firefox gives me this error in the javascript console: Error: [Exception... "'Permission denied to get property HTMLDivElement.parentNode' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "<unknown>" data: no] Seems DynAPI appends on mouse events to these text input fields, even if they aren't added using DynAPI... and firefox doesn't like what they are trying to do? IE doesn't give any errors... but I haven't looked at any console output from IE... not sure if there is one.. Second, some cross browser stuff seems off.. for instance, trying to center a layer on a page, using anchors - it centers right in firefox (using the 2 centerH,V anchor methods) but in IE it centers horizontally then centers vertically at origin 0, instead of at the middle of the page. So that doesn't work.. I also tried using half of DynAPI.document.getWidth(); minus half of the width of the element to center it (same with vertical) but IE chokes on that if it's done before onLoad (firefox works fine here) but if I do it after or during onload, the bordermanager stops drawing borders... ! What's the proper way to center a layer on a page in a cross-browser compatible way? (that wont break other functionality) Also is there a site out there with nice documentation of the API, or proper tutorials? Thanks, Seb |