Re: [Dynapi-Dev] Event Code Separation

2001-02-25 Thread Eytan Heidingsfeld
Which makes it slightly slower (but I'm not compaining) 8an ___ Dynapi-Dev mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/dynapi-dev

[Dynapi-Dev] More On Freeing Memory

2001-02-25 Thread Eytan Heidingsfeld
As I have mentioned (more then once) the delete operator works but onlytested it on actual objects. Not DHTML components(layers,divs,nodes) forthose you have a whole new set of rules. So we need to find out how to freeactual elements.8an

RE: [Dynapi-Dev] a few hours for only 2 lines of code.. damn!

2001-02-25 Thread Pascal Bestebroer
man, now your gonna get it :) leave the inheriting model alone! serious though, currently widgets really inherit from the dynlayer, so that all dynlayer methods are available without any extra code (or memory) if you make it a property of the widget, all these things are gone and you would need

Re: [Dynapi-Dev] a few hours for only 2 lines of code.. damn!

2001-02-25 Thread Eytan Heidingsfeld
It HURTS! My My The Rocks fell like rain!! (And Feb 24th is even my birthday ;-) There will be no difference in memory if you place it as an object but it is just better programming. Straight out! The problem is that you think of DynLayer as a widget instead of an interface remember it is Dyn - AP

Re[2]: [Dynapi-Dev] a few hours for only 2 lines of code.. damn!

2001-02-25 Thread Robert Rainwater
As much as I liked DynAPI 1, I don't want to go back to those days :) I think the widget model as it is now, is much more extensible than by not using any type of inheriting. -- // Robert Rainwater On 2/25/2001, 3:48:41 AM EST, Pascal wrote about "[Dynapi-Dev] a few hours for only 2 lines of

[Dynapi-Dev] Removed addChildID

2001-02-25 Thread Robert Rainwater
I removed the addChildID from dynlayer.js. The document.all[] id's are now set in assignChildren. It seems that assignChildren was stepping through the children right after addChildID did the same, so I just put the code in assignChildren and removed addChildID. May not be much of an improveme

[Dynapi-Dev] The Ongoing Battle Against Mem Loss

2001-02-25 Thread Eytan Heidingsfeld
I decided to tackle the more DHTML side of it. I have also decided that all tests should be per browser since they are all different. IE 5.0 great news. Creating 1500 layers raises mem usg to 10 MB(From 8+-) Deletion down to 9 MB! 8an  

Re[2]: [Dynapi-Dev] [ dynapi-Bugs-404007 ] Events in Images (IE 5.5)

2001-02-25 Thread Robert Rainwater
Try any of the button examples or the scrollpane example. No events are fired when directly over an image. I'm using the latest code from CVS. I thought this had been fixed before? -- // Robert Rainwater On 2/24/2001, 11:37:55 PM EST, Doug wrote about "[Dynapi-Dev] [ dynapi-Bugs-404007 ] E

RE: [Dynapi-Dev] a few hours for only 2 lines of code.. damn!

2001-02-25 Thread Pascal Bestebroer
And see the API part, this means not just for making things work cross-browser, but also make the underlying code transparent and as easy to use as possible. So the difference: myWidget.moveTo(50,50) or myWidget.DynLayer.moveTo(50,50) would 1. add more code in general 2. not as transparent a

RE: Re[2]: [Dynapi-Dev] [ dynapi-Bugs-404007 ] Events in Images (IE 5.5)

2001-02-25 Thread Pascal Bestebroer
uhm.. just in case: sorry :) Not sure if I broke anything, but that's why people should now test the CVS code as much as possible I did alot of if statement changes, and other optimisations so these might have caused problems. Pascal Bestebroer [EMAIL PROTECTED] http://www.dynamic-core.net >

RE: Re[2]: [Dynapi-Dev] setContent

2001-02-25 Thread Pascal Bestebroer
Yes I still want to implement it, but it does require some time to split up the needed code, and didn't find the time for it yesterday. I do believe it should be done before any new release, because we already have a heavily changed code now which might cause bugs so adding this potential-bug-tra

Re: [Dynapi-Dev] a few hours for only 2 lines of code.. damn!

2001-02-25 Thread Eytan Heidingsfeld
A wrapper function would be added to myWidget that would look like this: myWidget.prototype.moveTo = function(x,y){ this.dynlayer.moveto(x,y); } 8an ___ Dynapi-Dev mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/dynapi-d

RE: [Dynapi-Dev] a few hours for only 2 lines of code.. damn!

2001-02-25 Thread Pascal Bestebroer
extra code (size is also an issue with javascript) to be rude: these things have all been discussed many times in the last year.. and we (including Dan back then) decided that this was just the most straight forward way of doing the inheriting (and widgets SHOULD inherit from dynlayer for should

[Dynapi-Dev] [ dynapi-Bugs-404007 ] Events in Images (IE 5.5)

2001-02-25 Thread nobody
Artifact #404007, was updated on 2001-02-24 16:07 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=105757&aid=404007&group_id=5757 Category: Core API Group: None Status: Open Priority: 6 Submitted By: Robert Rainwater Assigned to: Pascal Bestebroer Summary: Events in

[Dynapi-Dev] [ dynapi-Bugs-404007 ] Events in Images (IE 5.5)

2001-02-25 Thread nobody
Artifact #404007, was updated on 2001-02-24 16:07 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=105757&aid=404007&group_id=5757 Category: Core API Group: None Status: Closed Priority: 6 Submitted By: Robert Rainwater Assigned to: Pascal Bestebroer Summary: Events

RE: Re[2]: [Dynapi-Dev] [ dynapi-Bugs-404007 ] Events in Images (IE 5.5)

2001-02-25 Thread Pascal Bestebroer
k, fixed it Pascal Bestebroer [EMAIL PROTECTED] http://www.dynamic-core.net > -Oorspronkelijk bericht- > Van: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]Namens Pascal Bestebroer > Verzonden: zondag 25 februari 2001 11:21 > Aan: [EMAIL PROTECTED] > Onderwerp: RE: Re[2]: [Dynapi-Dev] [

RE: [Dynapi-Dev] nameology

2001-02-25 Thread Pascal Bestebroer
not sure how we can maintain it.. currently we have one release version, and one in CVS which is just the working code. No real versions numbers (just dates) are added.. having two versions is alot to maintain (I know :) but if you can come up with a good idea, attach it to a rock and throw it.

Re: [Dynapi-Dev] a few hours for only 2 lines of code.. damn!

2001-02-25 Thread Eytan Heidingsfeld
Give me a break! Not meaning to sound rude: the over head of those bytes is the least of our problems and anyway since they are part of an object (not element) there isn't even a leak! 8an ___ Dynapi-Dev mailing list [EMAIL PROTECTED] http://lists.sour

RE: [Dynapi-Dev] a few hours for only 2 lines of code.. damn!

2001-02-25 Thread Pascal Bestebroer
over head of those bytes IS a problem.. a webapplication or very enhanced website would have ALOT of extra code going on, so all files would require much more. I dont see what the big improvement would be.. you still have a DynLayer to deal with. The main problem is that your doing alot of worka

Re: [Dynapi-Dev] The Ongoing Battle Against Mem Loss

2001-02-25 Thread Eytan Heidingsfeld
And even greater news from the front 15k divs bump the mem to 20MB freeing brings us back to 9MB   Yippy 8an

Re: [Dynapi-Dev] a few hours for only 2 lines of code.. damn!

2001-02-25 Thread Eytan Heidingsfeld
The problem is actualy two: * Correct programming Just what it sounds like. Imagine in windows all components would inherit from canvas * Eaisier to write widgets. For instance a pop up menu (what a cool idea ;-) because you don't know where on the page you are and you might want the pop up menu t

RE: [Dynapi-Dev] a few hours for only 2 lines of code.. damn!

2001-02-25 Thread Pascal Bestebroer
> * Correct programming > Just what it sounds like. Imagine in windows all components would inherit > from canvas look at delphi : TComponent (that's our DynLayer) the base object of all components/widgets. > * Eaisier to write widgets. > For instance a pop up menu (what a cool idea ;-) beca

Re: [Dynapi-Dev] a few hours for only 2 lines of code.. damn!

2001-02-25 Thread Eytan Heidingsfeld
No, Delphi TComponent (been reading about this because of the Kylix) is a basic component that wraps the calls to the API. I don't care if we make a TComponent or TWidget but I just perfer this over using the DynLayer itself. 8an ___ Dynapi-Dev maili

RE: [Dynapi-Dev] a few hours for only 2 lines of code.. damn!

2001-02-25 Thread Pascal Bestebroer
DynLayer IS the root component (that's what I've been trying to say) Every widget needs the graphical functionality of a DynLayer, that's why it IS the base object. Ofcourse TComponent is Delphi only, because Windows internally probably doesn't have anything like it.. just graphics functions to

Re: [Dynapi-Dev] a few hours for only 2 lines of code.. damn!

2001-02-25 Thread Eytan Heidingsfeld
Ok. You know what. I can see this. U win. (About the DynLayer not being a property) k? 8an ___ Dynapi-Dev mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/dynapi-dev

Re: [Dynapi-Dev] The Ongoing Battle Against Mem Loss

2001-02-25 Thread Eytan Heidingsfeld
Not having much luck with removeChild in NN6 and NN4 seems like a lossed cause. Even if I browse non DHTML pages it leaks! 8an

[Dynapi-Dev] Context Menus and Text Selection in IE5

2001-02-25 Thread Michael Pemberton
I've combined the different methods of stopping IE from displaying context menus and selecting text into the following lines of code. They should be placed just before the "return evt.browserReturn;" line. if (is.ie5) { if (evt.type=='mouseup' && evt.button==3) dyndoc.doc.oncontextmenu=(evt

Re: [Dynapi-Dev] a few hours for only 2 lines of code.. damn!

2001-02-25 Thread Michael Pemberton
I'm sorry if I'm late on the topic but it sux being 12 hours behind on all of these discussions. The API IS standalone. By itself it has NO visual components. If you want a root object on which to base your widgets, use the base JS object Object. This is what the DynLayer istelf in inhereting

Re: [Dynapi-Dev] a few hours for only 2 lines of code.. damn!(Changing to application)

2001-02-25 Thread Eytan Heidingsfeld
Ok. Now to another discussion that has to do with the previous one. What about creating an Application object. You don't have to use it. It will be optional but will take care of stuff like focus. 8an ___ Dynapi-Dev mailing list [EMAIL PROTECTED] http:

Re: [Dynapi-Dev] a few hours for only 2 lines of code.. damn!(Changing to application)

2001-02-25 Thread Michael Pemberton
this can be done again by just extending an Object. it is actually something i'm thinking of looking into for use with my dynform objects. Eytan Heidingsfeld wrote: > Ok. > Now to another discussion that has to do with the previous one. > What about creating an Application object. > You don't h

Re: [Dynapi-Dev] a few hours for only 2 lines of code.. damn!(Changing to application)

2001-02-25 Thread Eytan Heidingsfeld
Are your dynform for forms as in vb delphi forms (windows) or as in HTML forms? Cause I was also going to devlop a vb delphi one. I'd love to see urs. 8an ___ Dynapi-Dev mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/dynapi-

[Dynapi-Dev] [ dynapi-Bugs-223612 ] No mouseEvents in Mac IE5 in layers w/ images

2001-02-25 Thread nobody
Artifact #223612, was updated on 2000-11-27 10:14 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=105757&aid=223612&group_id=5757 Category: None Group: None Status: Open Priority: 5 Submitted By: Joshua Hancik Assigned to: Nobody/Anonymous Summary: No mouseEvents in

[Dynapi-Dev] elm.style is undefined

2001-02-25 Thread Eytan Heidingsfeld
I'm trying to write a widget your way and am getting elm.style is undefined does anyone know why this would happen or do I have to track it? 8an ___ Dynapi-Dev mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/dynapi-dev

[Dynapi-Dev] JIT JavaScript (was My JS Optimization Site)

2001-02-25 Thread Erik Arvidsson
What made you think that MS has a JIT for JScript? Personally I thought this was one of the good news about .Net and JScript.Net. (Getting the same performance as from all other languages.) IE3+ has been using MS JVM which uses JIT but this does not mean that JScript benefits from this? Any proo

Re: [Dynapi-Dev] JIT JavaScript (was My JS Optimization Site)

2001-02-25 Thread Robert Rainwater
The only JIT (Just-in-time) compiler I've ever heard of was for Java. But, I guess it MS could have one for JScript, but I've never heard of it. -- // Robert Rainwater On 2/25/2001, 2:57:17 PM EST, Erik wrote about "[Dynapi-Dev] JIT JavaScript (was My JS Optimization Site)": > What made you

Re: [Dynapi-Dev] a few hours for only 2 lines of code.. damn!

2001-02-25 Thread Henrik Våglin
Heh, I was just about to post this as something similar was suggested from others. Well, I guess it might add to the current turns as-is... --- I think that there's at least one occation when its useful of using an object other than simply the dynlayer OR dyndocument - managers. With managers I

Re: Re[2]: [Dynapi-Dev] a few hours for only 2 lines of code.. damn!

2001-02-25 Thread Doug Melvin
I most whole heartedly agree. The inheriting model makes so much of what I do possible. Withou one you loose the most integral part of the API. (IMHO of course) Dogu - Original Message - From: "Robert Rainwater" <[EMAIL PROTECTED]> To: "DynAPI Development List" <[EMAIL PROTECTED]> Sent:

Re: [Dynapi-Dev] a few hours for only 2 lines of code.. damn!

2001-02-25 Thread Doug Melvin
um, that would make two function calls instead of one.. With an interpreted language that can add up over several objects to noticeably slow down the whole application. - Original Message - From: "Eytan Heidingsfeld" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, February 25,

Re: [Dynapi-Dev] a few hours for only 2 lines of code.. damn!

2001-02-25 Thread Doug Melvin
How about a compramise? A SlimDynLayer? it would have addchild, moveto, setsize and such.. but would not have sethtml,setcontent,getcontentwidth.. ect.. Just a super-basic object that can be used for 'lightweight' widgets - Original Message - From: "Pascal Bestebroer" <[EMAIL PROTECTED]>

[Dynapi-Dev] Flag methods

2001-02-25 Thread Robert Rainwater
I think we can remove the flagprecreate and flagdelete methods. If flagprecreate is put into the createelement, you will notice a slight improvement in the time to create many nested layers. Unless there are any compelling reasons to keep these methods, I think they can be placed directly inside

[Dynapi-Dev] resizing

2001-02-25 Thread Doug Melvin
I thought resizing in NS was fixed again? Is there still a problem with dynimage? this is so frusterating.   ---Outgoing mail is certified Virus Free by AVG Free EditionDownload at: http://www.grisoft.com/html/us_index.cfmChecked by AVG anti-virus system (http://www.grisoft.com).Version: 6.0

Re: [Dynapi-Dev] resizing

2001-02-25 Thread Doug Melvin
traced  resizing in ns. followed it back to setHTML in dynimage, traced it further back the the onresize call in the dynimage itself. fixed if by modifiying the onresize for DynImage tot he foloowing:   setTimeout("DynAPI.document.all['"+o.id+"'].setImage(DynAPI.document.all['"+o.id+"'].img,t

Re: [Dynapi-Dev] My JS Optimization Site

2001-02-25 Thread Raides J . Rodríguez Domínguez
Jeff wrote: > > Whew! Go away for a day and the messages pile up! > > Raides J. - I was under the impression that this (JIT) was essentially > the case for both browsers, but I could be mistaken. The following is > from the Netscape JavaScript 1.3 reference, describing a function as > opposed to

Re: [Dynapi-Dev] JIT JavaScript (was My JS Optimization Site)

2001-02-25 Thread Raides J . Rodríguez Domínguez
Erik Arvidsson wrote: > > What made you think that MS has a JIT for JScript? Personally I thought this > was one of the good news about .Net and JScript.Net. (Getting the same > performance as from all other languages.) > > IE3+ has been using MS JVM which uses JIT but this does not mean that > J

Re: [Dynapi-Dev] resizing

2001-02-25 Thread David Cushman
Hey Doug, The problem/solution I posted on the help list Saturday was regarding the window resizing in NS4.xx when a dynimage was used in a layer. Someone had posted some example code and it was similar to a problem I was having. There was definitely a problem as the dynimage was causing a fa

Re: [Dynapi-Dev] elm.style is undefined

2001-02-25 Thread Michael Pemberton
check that you are using the oncreate event to access the elements on the layer. the browser layer object is not created at the time yoyur are trying to access it. also, move this type of questions to the help list. Eytan Heidingsfeld wrote: > I'm trying to write a widget your way and am getti

Re: [Dynapi-Dev] elm.style is undefined

2001-02-25 Thread Michael Pemberton
check that you are using the oncreate event to access the elements on the layer. the browser layer object is not created at the time yoyur are trying to access it. also, move this type of questions to the help list. Eytan Heidingsfeld wrote: > I'm trying to write a widget your way and am getti

[Dynapi-Dev] Images and events

2001-02-25 Thread Michael Pemberton
I can only guess that the events problems are due to the .lyrobj only being set in the initial creation stage. if might be worth testing if there are any images added in the setHTML method and then updating the .lyrorj for the newly added images. If I'm wrong, rock my world. If not, anyone got

Re: [Dynapi-Dev] elm.style is undefined

2001-02-25 Thread Robert Rainwater
Yep, usually something like: if (!this.created) return; If you look in some of the included widgets you will see these checks -- // Robert Rainwater -- DynAPI Homepage: http://dynapi.sourceforge.net/ DynAPI Snapshots: http://dynapi.sourceforge.net/snapshot/ On Sunday, February 25, 2001 8:1

RE: [Dynapi-Dev] Images and events

2001-02-25 Thread Pascal
that .lyrobj code is back in (did it yesterday) so images should trigger the events normally again. (CVS code) Pascal Bestebroer ([EMAIL PROTECTED]) Software ontwikkelaar Oberon Informatiesystemen b.v. http://www.oibv.com > -Oorspronkelijk bericht- > Van: [EMAIL PROTECTED] > [mailto:[EM