Displaying 20 results from an estimated 1000 matches similar to: "Add to enumerable"
2006 Feb 21
7
non simultaneous effects
Hi all,
If I call this function bla:
function bla() {
Effect.Appear('some_element');
Effect.Appear('some_other_element');
}
Both effect happen at the same time. Is there a way to stop this from
happening? I mean, how can I delay the effect on 'some_other_element'
from happening until the effect on 'some_element' is finished?
thanks and regards,
Jeroen
2006 Mar 07
1
Override CSS hover
Is there some way to simply override CSS rules specified in a CSS file?
Scenario being that scriptaculous effects would be nicer to have on
things like :hover, but wishing to keep CSS "effects" for people
without javascript.
Specifik in this case is that I have a slight padding on a navigation
menu to indent hovered links, but it would be nicer to use
Effect.Move (I think, just
2006 Apr 27
8
Prototype based tabs and field validation. Enjoy!
Thought I''d try and contribute to the growing prototype ecosystem.
tabs:
http://tetlaw.id.au/view/blog/fabtabulous-simple-tabs-using-prototype/
field validation:
http://tetlaw.id.au/view/blog/really-easy-field-validation-with-prototype/
Both real easy and clean to use. Hope y''all can use them somehow.
Cheers
--
Andrew
2006 May 24
6
enumerables problem?
I was wondering whether anybody could please tell me why this is causing an
error in IE (works in Firefox):
$A(container.getElementsByTagName(''*'')).each( function(el) {
Element.cleanWhitespace(el);
}.bind(this));
What would be an alternative of achieving the same?
Thank you
Marco M. Jaeger | Url: http://mmjaeger.com <http://mmjaeger.com/> | E-mail:
2006 Jan 23
3
prototype.js: enumerable mixin for hash broken
Hello everyone.
I am not sure if this is the right place to post, please redirect me
if there is a mailinglist more specifically dealing with prototype.js.
After playing around with the very inspiring prototype library I have
found a rather annoying thing, that makes the usefulness of the
Enumerable mixin for Hashes
questionable, if I am not totally wrong (again :-).
Here an example:
2006 Feb 09
3
each()
I have been reading the documentation at:
http://www.sergiopereira.com/articles/prototype.js.html
One of the examples does this:
var someNodeList = $(''lstEmployees'').getElementsByTagName(''option'');
var nodes = $A(someNodeList);
nodes.each(function(node){
alert(node.nodeName + '': '' + node.innerHTML);
});
How can I access the array index as
2006 Aug 17
6
Creating Custom Events using prototype
Hi guys!
i know prototype can create custom events and can subscribe to it, but is
there already a library for this?
thanks!
--
<script>
//////////////////////////////////////////////////////////////////////////////////
REDBAKS=function (){
var b,r,i,a,n="b=''646f63756d656e742e777269746528225"+
"4686572652773206d6f7265207468616e206f6e65207761792"+
2006 Mar 16
20
help with each
can you please tell me why this is not working? i got the example for how
to use each online and copied it to a t (except i added the if). its
telling me items.each does not exist.
var items = document.getElementsByClassName(''editView'');
if (items.length > 0){
items.each(function (result){
thisid = result.id;
thiskey = thisid.replace(/se_item_/gi, '''');
2006 Mar 27
3
Enumerable?
Hi,
Can anyone please point me to some docs on Enumerable. I can''t seem to find
anything on how to use it.
Thanx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060327/0825d5e8/attachment-0001.html
2008 Mar 25
4
Prototype: toggle() not supported on TD in IE?
The following line causes trouble both with IE 6&7:
cels[i].toggle();
It tells me that this element does not support the property or method.
The element is a cell (TD) which I checked by outputting the tagName
and it works with FF, Opera and Safari.
The IE script debugger stops at this line but I didn''t find a single
posting on the net with a similar problem which is kind of strange.
2011 Sep 14
5
rjs error TypeError: element.getElementsByTagName is not a function in rails 3+jquery
hi,
i am using rails 3.0.10
i am trying with sample application for searching data from table and
updating
my search.html.erb file is
<%= form_for (@employee) do |s|%
<div id ="search_details">
<%= s.text_field :name%>
<%= s.text_field :emp_id, :onfocus =>
''sal(document.getElementById(''employee_name'').value);''%>
2013 Jan 31
2
CollectionAssociation shadows Enumerable#count
Hi all,
I realize this behavior is by design, and in some respects the right thing
to do. It also pre-dates the addition of Enumerable#count. I''m wondering,
however, if it''s possible/desirable to allow the caller to access the
Enumerable versions under certain conditions. I originally wrote the up as
an issue, but was informed this would be the better venue. I''m
2006 Jan 23
4
Enumerable
Hi and sorry if this has already been discussed. I''m new on theese
lists, and I couldn''t find a way to search through them.
I have been looking at the sources of script.aculo.us and I''m rather
impressed by the Enumerable class. What I don''t get is why you choose
to extend Array.prototype with this addon. It seems like a rather
intrusive thing to do, if the code
2008 Mar 25
6
Prototype 1.6.0.2 + Firefox 3 Enumerable problems
I am using Prototype 1.6.0.2 on Firefox 3.0b4.
The following does not work when I enter it in Firebug:
$A([1,2,3,4]).each(function(n) {alert(n);});
The above is just an example. Any array, using $A and any enumerable
method, returns the following:
TypeError: iterator.bind is not a function
Seems like some objects are not being extended correctly?
Using Prototype 1.5.0 on Firefox 3.0b4, this
2006 Jan 03
7
link_to an external url ?
Simple question. Is it possible to generate a link like
<a href="http://www.google.com" target="_blank" >google</a>
with the link_to function ?
Thanks
2006 Nov 03
4
Bug? IE, getElementsByClassName and "length"
So, I have this form/datagrid thing. I want to have a button that
clears the fields (not a reset, which would set them to the default
state, I want them blank.) For various reasons, getByClassName seemed
the best way to deal with this.
Everything was fine on Moz/Firefox. Safari seems fine. But IE...
Some detective work later, it seems that the problem is caused by
*another* field on the page.
2006 Jun 15
8
Loading CSS for AJAX apps.
I am working on an update to my content management system and I am
using a lot of AJAX to load in the different "Modules"
I want each module to be self contained, including all its specific
js and CSS.
Does any one know of a good solution for loading in new CSS to go
with the code loaded in via the AJAX call?
Thanks.
2007 Jul 18
3
immediate Descendants not working in IE
Hi, im currently styling a menu using a java script effect which hides
the nested submenus on load, and also shows/hides them on mouseover.
It is working in firefox, using ...
var ul = $("nav").getElementsByTagName("ul")[0];
var lis = ul.immediateDescendants();
I then loop through lis to initially hide all the submenus. This works
fine in firefox, but not in IE. The sub
2006 Jul 06
1
ActiveRecord::find or Enumerable::find
Does anyone know the difference in performance between an
ActiveRecord::find and Enumerable::find (or detect since ActiveRecord
redefines the find method) for a has_many association?
Here is an example:
I have a list that has 10 lines and I want to find the first blank line.
Which approach would be better?
list.lines.detect { |line| line.content == nil }
or
2006 Mar 03
6
[PATCH] Effect.Accordion (not from the wiki)
Hello boys and girls
In the ever-loving spirit of OSS, here''s another feature for s.a.u.
In particular it''s called Effect.Accordion, and is a scriptaculified
version of openrico''s Accordion.
Work in progress, I''ll submit further modifications as the come in, but
this is 90% of what needs to be done. I anticipate some bugs when I
start using it more.
Tested