From: Bill W. <bil...@us...> - 2000-12-04 19:29:53
|
Perhaps, (and I am not sure) it is because this.css.width is only for ie and ns5 and you might be using netscape 4.7???? I found this in DynLayer's setSize method. Otherwise it sets the clip width and height. if (is.ie || is.ns5) { this.css.width=w this.css.height=h } For cross browser compatability use the '.getWidth()' method or, the '.w' property (not .css.width) But this.w accesses the width directly, which is really a no-no in OO. getWidth() is better, because someone may change the '.w' property to '.widthofmyfunkylayerthingamajig' someday. If you use this.getWidth() it should still work even then, assuming they did it right. Regards -bw Álvaro Peña González <ice...@ve...> wrote: > --------------------------------------------- > Attachment: > MIME Type: multipart/alternative > --------------------------------------------- > Ok Bill. > > The code works correctly with your change. > > But I ask a thing: > > Because the message that I place after storing wide and high of the layer and the document shows the data of lw, lh, dw and dh correctly and later do not make the operations correctament? > > lw = this.css.width; > lh = this.css.height; > dw = DynAPI.document.w; > dh = DynAPI.document.h; > > alert("Function Aling() lw:"+lw+" lh:"+lh+" dw:"+dw+" dh:"+dh+" cHor:"+cHor+" cVer:"+cVer); < It gives the correct values of wide and the high of layer and document. > > Some explanation? ____________________________________________________________________ Get free email and a permanent address at http://www.netaddress.com/?N=1 |
From: Bill W. <bil...@us...> - 2000-12-05 15:03:20
|
Álvaro- I looked for that, but I must have missed it, you're right. Hmmm. I'll have to look at it some more. I wish I had a debugger. I was about to install Visual Interdev on my laptop but it wanted to 'correct' my JDK1.3 back to 1.2.... some upgrade, sheesh. I love the debugger though. I wonder if there is a good javascript debugger that will run on my Linux system at home? -bw Álvaro Peña González <ice...@ve...> wrote: > OK, Bill, thanks for your aid, but other things more :-) > > You are right as far as that acceding to the wide one by means of the > function getWidth() more is OO than directly by means of w. > > But as far as the one of which this.css.width is single for ie or ns5 I do > not agree. > Watching the following code that is called during the creation of the layer > we found that: > > DynLayer.prototype.assignElement=function(elm) { > this.elm=elm > if (is.ns4) > > this.css=this.elm > this.doc=this.elm.document > this.doc.lyrobj=this > } > else if (is.ie || is.ns5) { > this.css=this.elm.style > this.doc=this.parent.doc > } > this.elm.lyrobj=this > this.created=true > } > > this.css directly points in the style of the layer independientemete of the > browser, in addition use ie. > > Although I repeat that you are right and the correct way to obtain the wide > of the layer is by means of the method getWidth(). > > bye. > > ----- Original Message ----- > From: "Bill Wheaton" <bil...@us...> > To: <dyn...@li...> > Sent: Monday, December 04, 2000 8:29 PM > Subject: Re: [[Dynapi-Dev] Re: Layer Aling] > > > > Perhaps, (and I am not sure) it is because this.css.width is only for ie > and > > ns5 and you might be using netscape 4.7???? > > > > I found this in DynLayer's setSize method. Otherwise it sets the clip > width > > and height. > > if (is.ie || is.ns5) { > > this.css.width=w > > this.css.height=h > > } > > For cross browser compatability use the '.getWidth()' method or, the '.w' > > property (not .css.width) > > > > But this.w accesses the width directly, which is really a no-no in OO. > > getWidth() is better, because someone may change the '.w' property to > > '.widthofmyfunkylayerthingamajig' someday. If you use this.getWidth() it > > should still work even then, assuming they did it right. > > Regards > > -bw > > > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://lists.sourceforge.net/mailman/listinfo/dynapi-dev ____________________________________________________________________ Get free email and a permanent address at http://www.netaddress.com/?N=1 |
From: Alexey M. <ma...@ca...> - 2000-12-05 15:54:56
|
> I wonder if there is a good javascript debugger that will run on my I thinks there is different debuggers for Netscape and for IE (latest you have tried to install). For Netscape - look at http://developer.netscape.com for "Visual JavaScript". It is written in Java - and run as an applet in same Netscpae. But asks permissions for "Universal.debug" or something and for reading local files from JS/Java. Malx |
From: Brandon M. <bnd...@ho...> - 2000-12-05 16:17:06
|
I have a debugging program that I wrote in javascript, simply add the debug.js file in the front, and the ability to "watch" variables, evaluate expressions, call functions, and write to a log within code is available. I have been using if for over 2 years now with great success. It's what I used to understand how DynAPI worked, and how the event system was structured. If there is sufficient interest, I can revamp the code, which has some bugs that need to be squashed, and release it. I should be in CVS, as I included it in the initial import. ----- Original Message ----- From: "Alexey Medvedev" <ma...@ca...> To: <dyn...@li...> Sent: Tuesday, December 05, 2000 10:53 AM Subject: [Dynapi-Dev] JS debuger > > > I wonder if there is a good javascript debugger that will run on my > > I thinks there is different debuggers for Netscape and for > IE (latest you have tried to install). > > For Netscape - look at http://developer.netscape.com for > "Visual JavaScript". It is written in Java - and run as an applet in > same Netscpae. But asks permissions for "Universal.debug" or something > and for reading local files from JS/Java. > > Malx > > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://lists.sourceforge.net/mailman/listinfo/dynapi-dev |
From: Alexey M. <ma...@ca...> - 2000-12-05 16:34:39
|
On Tue, 5 Dec 2000, Brandon Myers wrote: > there is sufficient interest, I can revamp the code, which has some bugs > that need to be squashed, and release it. It would be interesting if you put it on some web (or post me ;) Also I could show my version of JS debuger. I have used it to understand JS at all (and IE/NN4 objects model) http://cad.ntu-kpi.kiev.ua/~netlib/js/JS_MDV/js_mdv.tgz view/list, execute (eval) , change properties Malx |
From: Jared N. <ja...@aa...> - 2000-12-05 16:47:54
|
I am very interested in this debugger of yours...please post the code, when you get a chance... also line 14 of dynapi.js (build 2000.11.7) reads: wasDraging : false, can anyone fill me in on what on earth this line is used for? I tried looking through the rest of the code and could not find it. |
From: Alexey M. <ma...@ca...> - 2000-12-05 17:43:18
|
> also line 14 of dynapi.js (build 2000.11.7) reads: > wasDraging : false, You could define object like: A = new Obj() or A = {prop:value,prop2:value} same array A = [val1,val2] Malx |
From: Jared N. <ja...@aa...> - 2000-12-05 17:03:51
|
Is there a way I can download all of the files from the cvs...i have only found a way to download individual files, which is pretty inconvenient.... just wondering, sorry to bother all of you..... |
From: Jordi 'I. M. <jmi...@or...> - 2000-12-05 17:25:15
|
Once the dyanpi project is on your left-side explorer inside winCvs. Right-click and select "checkout" Jared Nuzzolillo wrote: > Is there a way I can download all of the files from the cvs...i have only > found a way to download individual files, which is pretty inconvenient.... > just wondering, sorry to bother all of you..... > > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://lists.sourceforge.net/mailman/listinfo/dynapi-dev |
From: Alexey M. <ma...@ca...> - 2000-12-05 17:44:42
|
> Is there a way I can download all of the files from the cvs...i have only > found a way to download individual files, which is pretty inconvenient.... unix: cvs -z6 checkout dynapi (-z6 - use compression in SSH) |
From: Brandon M. <bnd...@ho...> - 2000-12-05 18:38:02
|
DOS does the same thing with winCVS.. there is a command line CVS that comes with it. WinCVS is just a front-end to the CVS command line. ----- Original Message ----- From: "Alexey Medvedev" <ma...@ca...> To: <dyn...@li...> Sent: Tuesday, December 05, 2000 12:43 PM Subject: Re: [Dynapi-Dev] download all current files? > > Is there a way I can download all of the files from the cvs...i have only > > found a way to download individual files, which is pretty inconvenient.... > > unix: > > cvs -z6 checkout dynapi > (-z6 - use compression in SSH) > > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://lists.sourceforge.net/mailman/listinfo/dynapi-dev |
From: Robert R. <rra...@ya...> - 2000-12-06 03:05:57
|
Also, if you just want to get the latest version, you don't need to do a checkout. You can just say: "cvs -d:ext:<username>@cvs.dynapi.sourceforge.net:/cvsroot/dynapi -r HEAD dynapi" This will remove all of the CVS related stuff (all of the CVS/ directories). -- // Robert Rainwater On 12/5/2000, 12:43:01 PM EST, Alexey wrote about "[Dynapi-Dev] download all current files?": >> Is there a way I can download all of the files from the cvs...i have only >> found a way to download individual files, which is pretty inconvenient.... > unix: > cvs -z6 checkout dynapi > (-z6 - use compression in SSH) > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://lists.sourceforge.net/mailman/listinfo/dynapi-dev |
From: Craig T. <cr...@re...> - 2000-12-06 01:02:39
|
I cannot express how ridiculously useful this could be. If it's good enough I'm sure they'd incorporate it into a future revision of the mozilla base. > I have a debugging program that I wrote in javascript, simply add the > debug.js file in the front, and the ability to "watch" variables, evaluate > expressions, call functions, and write to a log within code is available. - C |
From: Nuno F. <nun...@wi...> - 2000-12-05 17:15:51
|
>> I wonder if there is a good javascript debugger that will run on my > I thinks there is different debuggers for Netscape and for > IE (latest you have tried to install). I didn't check it out yet, but the new Dreamweaver 4 by macromedia, is supposed to have a Javascript editor and debugger, for Netscape and Explorer, as well as including the complete "Dynamic HTML - Definite Reference" by Danny Goodman/O'Reilly for referencing, which is a very handy book to have around.... best, NunoF |
From: Cameron H. <ca...@bi...> - 2000-12-06 09:43:36
|
Macromedia Dreamweaver 4 has just been release and has a javascript debugger in it. This is the blurb from their website: "Debug client-side JavaScript directly in your browser. The new JavaScript Debugger lets you watch JavaScript execute in Netscape Navigator or Internet Explorer, helping you understand how each browser implements JavaScript. Debug your code by setting breakpoints and then watching your variables update as you step through the code." Haven't tried it myself. If it actually works it will be fantastic, the first cross-browser client side debugger for javascript!? Cam. -----Original Message----- From: dyn...@li... [mailto:dyn...@li...]On Behalf Of Alexey Medvedev Sent: 05 December 2000 15:53 To: dyn...@li... Subject: [Dynapi-Dev] JS debuger > I wonder if there is a good javascript debugger that will run on my I thinks there is different debuggers for Netscape and for IE (latest you have tried to install). For Netscape - look at http://developer.netscape.com for "Visual JavaScript". It is written in Java - and run as an applet in same Netscpae. But asks permissions for "Universal.debug" or something and for reading local files from JS/Java. Malx _______________________________________________ Dynapi-Dev mailing list Dyn...@li... http://lists.sourceforge.net/mailman/listinfo/dynapi-dev |
From: <ice...@ve...> - 2000-12-05 09:40:48
|
OK, Bill, thanks for your aid, but other things more :-) You are right as far as that acceding to the wide one by means of the function getWidth() more is OO than directly by means of w. But as far as the one of which this.css.width is single for ie or ns5 I do not agree. Watching the following code that is called during the creation of the layer we found that: DynLayer.prototype.assignElement=function(elm) { this.elm=elm if (is.ns4) this.css=this.elm this.doc=this.elm.document this.doc.lyrobj=this } else if (is.ie || is.ns5) { this.css=this.elm.style this.doc=this.parent.doc } this.elm.lyrobj=this this.created=true } this.css directly points in the style of the layer independientemete of the browser, in addition use ie. Although I repeat that you are right and the correct way to obtain the wide of the layer is by means of the method getWidth(). bye. ----- Original Message ----- From: "Bill Wheaton" <bil...@us...> To: <dyn...@li...> Sent: Monday, December 04, 2000 8:29 PM Subject: Re: [[Dynapi-Dev] Re: Layer Aling] > Perhaps, (and I am not sure) it is because this.css.width is only for ie and > ns5 and you might be using netscape 4.7???? > > I found this in DynLayer's setSize method. Otherwise it sets the clip width > and height. > if (is.ie || is.ns5) { > this.css.width=w > this.css.height=h > } > For cross browser compatability use the '.getWidth()' method or, the '.w' > property (not .css.width) > > But this.w accesses the width directly, which is really a no-no in OO. > getWidth() is better, because someone may change the '.w' property to > '.widthofmyfunkylayerthingamajig' someday. If you use this.getWidth() it > should still work even then, assuming they did it right. > Regards > -bw |