--- Benoit Marchant <[EMAIL PROTECTED]> wrote:
> Mac OS X 10.2.4, Dual processor G4 1Ghz:
> 
> 
> > http://www24.brinkster.com/dyntools/next/examples/
> 
> > speedtest.templatedesigner-basic.html
> Gecko/20021120 Netscape/7.01 : 500 layers in 1407
> milliseconds
> IE 5.2.2: 500 layers in 1826 milliseconds
> Safari: 500 layers in 3927 milliseconds

Did you compare the values without using
templatedesigner? Is TemplateDesigner faster?
 
> > http://www24.brinkster.com/dyntools/next/examples/
> > speedtest.templatedesigner-deep_nest.html
> Safari: doesn't work ??

Any ideas why? Too many nested layers?

> It's funny you used a dictionary to pass the
> arguments !

Yes I did :) 

The TemplateDesigner.add() function should never be
used in a loop. If we were to use a dictionary object
for DynLayer then we would have a problem it DynLayer
was used inside a loop.

> Wouldn't it make more sense to use a class on the
> divs to have them all  
> look the same ? That would work for all properties
> but the innerHTML ?  

That's true, but once the page loads you'll not have
the option of change the class property, correct? In
other words if we were to use the TemplateDesigner to
generate a <style> sheet and write it out using
document.write(), how will we be able to modify the
properties of the <style> sheet after the page loads?
Will it be possible to do so in ns4,ie6,etc?

> Otherwise, it's a good idea to automate things. How
> would that work if  
> you wanted to automate in the same way the creation
> of a widget that  
> needs extra arguments. I think we should find a
> clean way to make that  
> possible, it's in the same line as the getInline
> issue for subclasses  
> of dynlayers.

The quickest solution that most developers use is to
overwrite the function. Do you have any ideas that
will have an impact on performance?

One idea I had was to use a PropertyBag object:

function myObject(x,y,pBag){
  //some code here
}

var pbag=PropertyBag.getBag();
pbag.color="yellow";
pbag.size=2;
myObject(10,10,pbag);

The PropertyBag object still impacts performance as
the bag would have to be flush every time.
 
--
Raymond Irving

> Benoit
> 
> >
> > Download updates here:
> >
>
http://www24.brinkster.com/dyntools/next/dynapi3x.zip
> >
> > Specs:
> > ----------
> > Window XP
> > IE 6, Opera V7 build 2577, Phoenix 0.4
> > 800Mhz 512MB RAM
> >
> > Please test these findings and please give a
> response.
> > Should I implement these designs or not?
> >
> > PS. Template Designer current does not work with
> ns4.
> > NS4 support will be added shortly
> >
> > --
> > Raymond Irving
> >
> >
> > __________________________________________________
> > Do you Yahoo!?
> > Yahoo! Tax Center - forms, calculators, tips, more
> > http://taxes.yahoo.com/
> >
> >
> >
>
-------------------------------------------------------
> > This sf.net email is sponsored by:ThinkGeek
> > Welcome to geek heaven.
> > http://thinkgeek.com/sf
> > _______________________________________________
> > Dynapi-Dev mailing list
> > [EMAIL PROTECTED]
> >
>
http://www.mail-archive.com/[EMAIL PROTECTED]/
> >
> 


__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://www.mail-archive.com/[EMAIL PROTECTED]/

Reply via email to