Hi Guys,

I've discovered a way to create and insert an element in a faster way,
for IE the difference is huge, like a half better.

Normally I’m creating the elements in this way.

var text1 = new Element('div').insert('hello');

But I’ve seen that if you do that, is much faster:

var text1 = new Element('div', { 'innerHTML': 'hello' });

The problem is that this second way is only working for IE, not for FF
or Chrome. Do you know what’s the problem?

Thanks a lot in advanced.

Kr, Jose

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.

Reply via email to