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 |
From: Leif W <war...@us...> - 2004-09-08 18:03:44
|
Hi, Well, about the first issue, it's a bug that popped up in Mozilla 1.4 (about 15 months ago) that the Mozilla group seems to ignore? The topic has been discussed on the list and should be in the archives. Search for the error message and you'll find it. The error can be reproduced with very simple HTML code and has nothing to do with the API. It's an annoying error, but I don't remember it interferring with anything. http://www.mail-archive.com/dyn...@li.../ http://www.mail-archive.com/dyn...@li.../msg05665.html http://bugzilla.mozilla.org/show_bug.cgi?id=208427 I can't speak to the cross-browser or widget interaction stuff off-hand without investigating further. A bit of example code is sometimes helpful, with notes in comments about what you've been trying, so others can reproduce the results and make suggestions. I'm not aware of any other site with full documentation. The documentation provided is as much as I've seen, though it is incomplete. It looks nice, but some gaps need to be filled in. The mailing list archives for dynapi-help and dynapi-dev may be good resources. Some of the examples are pretty good, but could probably be expanded as well. Leif ----- Original Message ----- From: "Seb" <se...@sy...> To: <dyn...@li...> Sent: Wednesday, September 08, 2004 05:41 Subject: [Dynapi-Help] couple of things... > 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 > > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > https://lists.sourceforge.net/lists/listinfo/dynapi-help > > |
From: Seb <se...@sy...> - 2004-09-08 23:25:39
|
I've checked the lists a while, problem being that they jump back various versions pretty quickly.. not many posts regarding the dynapi 3 for instance... I'll fix up the code to remove privacy concerns and send it off here, what's the policy on attachments? Better yet i'll just up it to a server somewhere.. Not now though cause this vnc is hellishly slowish. Seb Leif W wrote: >Hi, > >Well, about the first issue, it's a bug that popped up in Mozilla 1.4 >(about 15 months ago) that the Mozilla group seems to ignore? The topic >has been discussed on the list and should be in the archives. Search >for the error message and you'll find it. The error can be reproduced >with very simple HTML code and has nothing to do with the API. It's an >annoying error, but I don't remember it interferring with anything. > >http://www.mail-archive.com/dyn...@li.../ > >http://www.mail-archive.com/dyn...@li.../msg05665.html > >http://bugzilla.mozilla.org/show_bug.cgi?id=208427 > >I can't speak to the cross-browser or widget interaction stuff off-hand >without investigating further. A bit of example code is sometimes >helpful, with notes in comments about what you've been trying, so others >can reproduce the results and make suggestions. > >I'm not aware of any other site with full documentation. The >documentation provided is as much as I've seen, though it is incomplete. >It looks nice, but some gaps need to be filled in. The mailing list >archives for dynapi-help and dynapi-dev may be good resources. Some of >the examples are pretty good, but could probably be expanded as well. > >Leif > >----- Original Message ----- >From: "Seb" <se...@sy...> >To: <dyn...@li...> >Sent: Wednesday, September 08, 2004 05:41 >Subject: [Dynapi-Help] couple of things... > > > > >>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 >> >> >> >>------------------------------------------------------- >>This SF.Net email is sponsored by BEA Weblogic Workshop >>FREE Java Enterprise J2EE developer tools! >>Get your free copy of BEA WebLogic Workshop 8.1 today. >>http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click >>_______________________________________________ >>Dynapi-Help mailing list >>Dyn...@li... >>https://lists.sourceforge.net/lists/listinfo/dynapi-help >> >> >> >> > > > > > >------------------------------------------------------- >This SF.Net email is sponsored by BEA Weblogic Workshop >FREE Java Enterprise J2EE developer tools! >Get your free copy of BEA WebLogic Workshop 8.1 today. >http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click >_______________________________________________ >Dynapi-Help mailing list >Dyn...@li... >https://lists.sourceforge.net/lists/listinfo/dynapi-help > > > |
From: Leif W <war...@us...> - 2004-09-08 23:48:19
|
I think people have had mixed results with attachments. Even if it makes it through the list software, some people's clients and virus scanners strip or disable them. Thanks to Microsoft, we've had to give up the so-called "innovation" of email-attachments out of fear of viruses. ;-) VNC can be slow. It usually helps at no more than 1024x768, 16-bit colors, but 8-bit colors are faster. It has been usable for me on cable to cable with as little as 128k on each end, while 256k was much better. Leif ----- Original Message ----- From: "Seb" <se...@sy...> To: <dyn...@li...> Sent: Wednesday, September 08, 2004 12:14 Subject: Re: [Dynapi-Help] couple of things... > I've checked the lists a while, problem being that they jump back > various versions pretty quickly.. not many posts regarding the dynapi 3 > for instance... I'll fix up the code to remove privacy concerns and > send it off here, what's the policy on attachments? Better yet i'll just > up it to a server somewhere.. Not now though cause this vnc is > hellishly slowish. > > Seb > > > Leif W wrote: > > >Hi, > > > >Well, about the first issue, it's a bug that popped up in Mozilla 1.4 > >(about 15 months ago) that the Mozilla group seems to ignore? The topic > >has been discussed on the list and should be in the archives. Search > >for the error message and you'll find it. The error can be reproduced > >with very simple HTML code and has nothing to do with the API. It's an > >annoying error, but I don't remember it interferring with anything. > > > >http://www.mail-archive.com/dyn...@li.../ > > > >http://www.mail-archive.com/dyn...@li.../msg05665. html > > > >http://bugzilla.mozilla.org/show_bug.cgi?id=208427 > > > >I can't speak to the cross-browser or widget interaction stuff off-hand > >without investigating further. A bit of example code is sometimes > >helpful, with notes in comments about what you've been trying, so others > >can reproduce the results and make suggestions. > > > >I'm not aware of any other site with full documentation. The > >documentation provided is as much as I've seen, though it is incomplete. > >It looks nice, but some gaps need to be filled in. The mailing list > >archives for dynapi-help and dynapi-dev may be good resources. Some of > >the examples are pretty good, but could probably be expanded as well. > > > >Leif > > > >----- Original Message ----- > >From: "Seb" <se...@sy...> > >To: <dyn...@li...> > >Sent: Wednesday, September 08, 2004 05:41 > >Subject: [Dynapi-Help] couple of things... > > > > > > > > > >>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 > >> > >> > >> > >>------------------------------------------------------- > >>This SF.Net email is sponsored by BEA Weblogic Workshop > >>FREE Java Enterprise J2EE developer tools! > >>Get your free copy of BEA WebLogic Workshop 8.1 today. > >>http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > >>_______________________________________________ > >>Dynapi-Help mailing list > >>Dyn...@li... > >>https://lists.sourceforge.net/lists/listinfo/dynapi-help > >> > >> > >> > >> > > > > > > > > > > > >------------------------------------------------------- > >This SF.Net email is sponsored by BEA Weblogic Workshop > >FREE Java Enterprise J2EE developer tools! > >Get your free copy of BEA WebLogic Workshop 8.1 today. > >http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > >_______________________________________________ > >Dynapi-Help mailing list > >Dyn...@li... > >https://lists.sourceforge.net/lists/listinfo/dynapi-help > > > > > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > https://lists.sourceforge.net/lists/listinfo/dynapi-help > |
From: Seb <se...@sy...> - 2004-09-09 16:55:33
|
Here is the stuff: Notice the 1st couple of lines of the javascript file, the 2 methods of centering... The 1st, manually centering, works, but only if it's donw after onload in IE, which breaks the bordermanager for some reason.. (doesn't draw borders..) The 2nd, using anchors, works nicely in firefox, but not in IE.. Also notice how i have to tag some formating onto the onload since it doesn't want to work before then. I am sure I can make it all work by putting more stuff in onload, but surely there's a more elegant way that it's supposed to be done? Course that problem wouldn't be a problem for me if i found a nice way to resize the window in question and remove all the toolbars and whatnot (as in the last function on the bottom) Or a way to close the main window automaticly heh.. which firefox refuses to do, at least.. (But that' a different story) Seb <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title></title> <Script type="text/javascript" src="../html/inc/dynapi3x/src/dynapi.js"></script> <Script type="text/javascript"> dynapi.library.setPath('../html/inc/dynapi3x/src/'); dynapi.library.include('dynapi.library'); dynapi.library.include('dynapi.api'); dynapi.library.include('TemplateManager'); dynapi.library.include('HTMLTextBox'); dynapi.library.include('Button'); dynapi.library.include('dynapi.functions.Color'); dynapi.library.include('dynapi.gui.BorderManager'); </script> <script type="text/javascript" src="inc/login.js"></script> <Script type="text/javascript"> var LoginError = ""; DrawLogin(); dynapi.onLoad(OnLoader); </script> </head> <body> <script type="text/javascript"> dynapi.document.insertAllChildren(); </script> </body> </html> Contents of login.js function DrawLogin() { //docwidth = DynAPI.document.getWidth(); //docheight = DynAPI.document.getHeight(); // make a nice box thingy... // MainLoginLayer = new DynLayer(null, ((docwidth/2)-400), ((docheight/2)-300), 800, 600, 'white'); MainLoginLayer = new DynLayer(null, 0, 0, 800, 600, 'white'); MainLoginLayer.setAnchor({centerV:0, centerH:0}); DynAPI.document.addChild(MainLoginLayer); MainLoginLayer.setInnerBorder(1,'black'); MakeHeader(MainLoginLayer); LoginIntroLayer = new DynLayer(null, 200, 215, 400, 100, 'transparent'); LoginIntroLayer.setHTML("Welcome to the Intranet. Please enter your credentials to access this site."); MainLoginLayer.addChild(LoginIntroLayer); // seems like a funky way of making a form, but this seems to be the 'manageable' method so.. formtemplate = new Template('<form action="" name="p1loginfrm" method="POST" >User Name: {@fld}<br> Password: {@fld1}</form>',270,275,260,100,'transparent'); username = new HTMLTextBox(null,'', 15, 15, false,'',"username"); password = new HTMLTextBox(null,'', 15, 15,true,'',"password"); formtemplate.addChild(username ,'fld'); formtemplate.addChild(password ,'fld1'); MainLoginLayer.addChild(formtemplate); LoginButton = new Button('Enter',370,350,60,30); MainLoginLayer.addChild(LoginButton); el = { onclick : function(e) { document.forms['p1loginfrm'].submit(); } } LoginButton.addEventListener(el); LoginOutroLayer = new DynLayer(null, 200, 400, 400, 100, 'transparent'); LoginOutroLayer.setHTML("Be advised, all access and activity will be logged."); MainLoginLayer.addChild(LoginOutroLayer); if(LoginError != "") { ErrorLayer = new DynLayer(null, 200, 475, 400, 50, 'transparent'); ErrorLayer.setHTML(LoginError); MainLoginLayer.addChild(ErrorLayer); ErrorLayer.setInnerBorder(3,'red', 'double'); } } function MakeHeader(ParentLayer) { docwidth = ParentLayer.getWidth(); docheight = ParentLayer.getHeight(); BannerLayer = new DynLayer(null, (docwidth - 588), 0, 588, 80, 'white'); BannerLayer.setHTML("<img src='images/top_service.jpg' border=0>"); ParentLayer.addChild(BannerLayer); LogoLayer = new DynLayer(null, -15, -20, 182, 80, 'white'); LogoLayer.setHTML("<img src='images/logo.gif' border=0>"); ParentLayer.addChild(LogoLayer); LogoLabelLayer = new DynLayer(null, 15, 56, 182, 20, ''); LogoLabelLayer.setHTML("<b>Operations Intranet</b>"); ParentLayer.addChild(LogoLabelLayer); } // Fix for the .css needing to be done on or after onload function OnLoader() { LoginIntroLayer.css.font = '12pts/18pts Courier'; LoginIntroLayer.css.textAlign = 'center'; formtemplate.css.textAlign = 'right'; LoginOutroLayer.css.font = '12pts/18pts Courier'; LoginOutroLayer.css.textAlign = 'center'; if(LoginError != "") { ErrorLayer.css.font = 'bold 12pts/18pts Courier'; ErrorLayer.css.textDecorationBlink = 1; ErrorLayer.css.textAlign = 'center'; } } function OpenMain() { day = new Date(); id = day.getTime(); eval("page" + id + " = window.open('main.phtml', '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=1,menubar=0,resizable=0,width=8 00,height=600,left = 400,top = 300');"); eval("if (page" + id+".opener == null) page" + id+".opener = self;"); } |