Hey guys,
I'm redesigning a template set for different kind of websites. In the past
quite a lot of 'widgets' have been created in the form of prototype Classes
and almost every widget works the same way:
1. get all elements with className 'x'
2. for each element: create a new ClassX
3. ClassX
I think it will be slower than separate selectors:
1. Single complex selector will require additional time to parse and merge
nodes into single result.
2. After that you will use additional checks - the same as in your
selectors.
--
You received this message because you are subscribed to the
I see in Firefox 3.6 that z-index is not changed at all.
--
You received this message because you are subscribed to the Google Groups
Prototype script.aculo.us group.
To view this discussion on the web visit
https://groups.google.com/d/msg/prototype-scriptaculous/-/lP4DA5SSbLAJ.
To post to
I'm getting something undefined (see generated source below) from this:
var img = new Element('img',
{'src':'/Resources/Library.Images/transparent.gif', 'usemap':'#' + company,
'style': 'width:' + args.width + '; height:' + args.height + ';'});
This is in IE7. Do you see an issue in or around
I don't know if this will help, but whenever I want to place any
element (div) on the top, I frequently obtain the current topmost
value of zindex and then add 1 to it.
currentMaxzIndex = $$(div).invoke(getStyle, zIndex).max();
newTopmostzIndex = parseInt(currentMaxzIndex) + 1;
How do you pluck the enumeration itt value? I need to find an item within
an enumeration, but I just need it's index.
Karl..
--
You received this message because you are subscribed to the Google Groups
Prototype script.aculo.us group.
To view this discussion on the web visit
On Aug 23, 2011, at 10:58 PM, kstubs wrote:
How do you pluck the enumeration itt value? I need to find an item
within an enumeration, but I just need it's index.
Karl..
$A(['foo','bar','baz']).each(function(elm,idx){
if(elm == 'bar') alert(idx);
});
Walter
--
You received this
OK, that is exactly what I wrote. I'm always looking for that really snazzy
shortcut.
Thanks.
--
You received this message because you are subscribed to the Google Groups
Prototype script.aculo.us group.
To view this discussion on the web visit