Hi nik,
That's one of the reasons why we created Element#readAttribute ( see:
http://prototypejs.org/api/element/readattribute ).
Note that these questions are usually better answered in the spinoffs
mailing list ( http://groups.google.com/group/rubyonrails-spinoffs ).
Best,
Tobie
On Mar 26,
Hello,
I tried to use
var foo = $$('div.myClass').invoke('getAttribute','id').uniq();
to get a unique list of all ids.
That worked well in FF 2 and Opera 9 but not in IE 6 (I don't tried in
IE7) So i did it using a workaround with a for-loop. It's a bug? Or am
I dumb ;)
greetz
--~--~-~
I have updated it with a version that reduces some overhead by using
closures, thanx kangax.
Yes Prototype would use Prototype.exec() instead of eval inside the
ajax methods.
http://dev.rubyonrails.org/ticket/11284
http://dev.rubyonrails.org/ticket/8112
I don't think this form of code executio
That is amazingly simple! Just curious about two things:
Does this mean Prototype.exec could be used in place of eval within
Prototype 1.6?
Would that fix the incompatibility with Adobe Air?
(http://groups.google.com/group/prototype-core/browse_thread/thread/4c2f10ab15f7623)
- Ken Snyder
John
patch + tests:
http://dev.rubyonrails.org/ticket/11423
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Prototype: Core" group.
To post to this group, send email to prototype-core@googlegroups.com
To unsubscribe from
Unfortunately, you can't augment actual properties of a custom event
when firing it - everything needs to be passed through memo.
- kangax
On Mar 25, 5:42 am, Jean-Philippe Encausse <[EMAIL PROTECTED]>
wrote:
> Exactly,
> Is there a way to set/override the element or the X,Y mouse location ?
>
>
Well, I don't find it quite intuitive to wrap elements in a span/div.
The reason we return first descendant element is because of
consistency - you don't always know the string contents - whether it
resolves to one element or an array of them.
I'm yet to find a good solution.
Any ideas?
- kangax
Exactly,
Is there a way to set/override the element or the X,Y mouse location ?
On you code I did:
onInterrupt: function(event) {
var target = Event.element(event);
var eX = Event.pointerX(event);
var eY = Event.pointerY(event);
document.fire('state:active', { idleTime: new
Don't you think that string should be wrapped with tag like div, span
or custom tag if it contains more than one elements?
Example:
''.makeElement().toHTML(); // =>''
''.makeElement('div').toHTML(); // =>''
'foo'.makeElement('span').toHTML() //=> 'foo'
<
On Mar 24, 5:39 pm, kangax <[EMAIL PROTECT