similar to: [prototype] Selector class fails on selector strings with spaces

Displaying 20 results from an estimated 1000 matches similar to: "[prototype] Selector class fails on selector strings with spaces"

2006 May 26
25
migration to rails
Hi, I''m a PHP developer and I''m think about migration to rails... my big problem is about printing web Reports, well I could not found a good thing to help me with this... Does Ror or some other ruby project have some thing to help about make/print database reports? tks
2006 May 25
7
prototype-ish subclassing
when using prototype and Class.create(), what''s the preferred method of creating a subclass? say I have a real simple class: var Testing = Class.create(); Object.extend(Testing.prototype, { initialize: function() { ... }, ... }); would I subclass it as so? var SubClass = Class.create(); Object.extend(Object.extend(SubCLass.prototype, Testing.prototype), { ...
2006 Apr 28
4
.times not behaving as I''d expect
I''m using prototype 1.4.0 in a big web application I''ve been working on for months and today a bug was raised by one of our testers. After investigation it turns out that something done 0 times will actually fire once. So, for example, if I had (0).times( function(i) { alert(i); } ); it''d fire once rather than not at all. Is this a bug in prototype or the
2006 Mar 02
6
Question about $F()
Hi Guys, Maybe this is a stupid question, but I am confused at the moment. The $F() function is a handy shortcut to get the value of the an input field. So, doing something like $F(''name'') is equivalent to document.formname.name.value which is pretty cool. Now, what if I have 2 forms on the page, that same field name "name"? What would $F return? It does not take
2006 May 18
5
more that 5 time beats for effect.pulsate
hi again How can i extend 5 times for effect.pulsate beats? I need that continue beat until other event client happened about my other mail, is there other solution more elegant that this? : new Effect.Pulsate(leccion[i_leccion],{duration: 5,from: 1}); thanks again rag
2006 Apr 24
5
merging one array into another
Is there no better way to merge one array into another than iterating over the array you wish to append with each() and push()ing the elements on to the other array? Here''s what I mean: var arr1 = [1, 2, 3, 4, 5]; var arr2 = [''a'', ''b'', ''c'']; $A(arr2).each(function(el) { arr1.push(el) }); Is there no better way to do it than this?
2006 May 22
13
Canceling a specific effect
Is there a way to cancel a specific effect? For instance; Effects are added to the queue. Before actually processing the effect, I''d like to check a condition & cancel the effect if necessary. Here''s the code excerpt: var menu = { toggleText: function(element,toggle) { var vis = $(element+''Text'').visible(); if (toggle && !vis)
2006 Feb 18
10
Updated: window dialog script
Dialog script has been update. A demo can be seen here: http://net4visions.com/dev/dialog/dialog.htm . Please see changelog for changes. The dialog script can be downloaded from here: http://www.net4visions.com/dev/downloads/dialog.zip . _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
2006 May 05
7
Problem with autocomplete
Hello, I''m using scriptaculous library (in symfony) v. 1.6.1 Great library !!!!! I have a problem. While in IE6 it''s all ok (the autocomplete field works perfectly) in FF 1.5.0.2 the field apparently isn''t working. If I try the example in the scriptaculous homepage (v. 1.4.0_pre4 of Prototype) doesn''t work with FF, while the simple online demo, that uses
2006 Jun 14
5
generic onDragStart onDrag and onDragFinish events extracted from scriptaculous?
Hi folks. I''m working on a project where I need some drag and drop, but I need to implement what happens in a very different way, so I''m creating my own class for it. I don''t want to reinvent the wheel and redo Thomas'' excellent drag/drop functionality, nor do I want to copy/paste his code over into mine. So, I was wondering, has anyone tried to extract
2007 Jan 19
7
Prototype.js: Is there an "in_array"-like function?
Hi i was wondering if there is a quick way to search for a item within an array. Here is my approach for this functionality. It''s an prototype for an Array method called "has": Array.prototype.has = function(needle) { for (var i=0;i<this.length;i++) { if(this[i] == needle){ return true; } } return false; } var someArray = [''jim'',
2006 May 03
1
Start/Finish events with $$ function?
Are there available events that can be hooked regarding the $$ function? For example, my application makes use of a function similar to $$(''.MyClass'').each(function(element, index) { /* Do something nifty */ }); and it takes a noticeable amount of time. I''m thinking that it would be beneficial to show a loading image while $$ is processing. So I was curious if the $$
2006 May 26
3
Docs for print or in the distribution zip?
Hi, Are there any plans to "export" the documentation from time to time(e.g. at releases) from the WIKI in an "offline" form to be usable as printed, and/or to be distributed with into scriptaculous-js-1.x.x.zip ? It is very uncomfortable that the ZIP distribution contains practically no documentation :(. Most of the WIKIs have such export function (many of them even export
2006 Apr 24
1
JSON Validator
Maybe I am missing something very obvious, but guys does anyone know of any JSON Validators around? The reason is when you do an eval(json_response), if the JSON format is not proper, you''ll only get an error like "Can''t eval..". But, this doesn''t help identify where the actual problem lies. Is there some kind of a schema or something we can write to check
2006 May 23
10
throttling...
Is there a way to throttle the firing of updater requests easily with Prototype? Thanks, mark
2006 Apr 07
4
Effect.toggle error in 1.6.1
I have this line of code: new Effect.toggle(document.getElementsByClassName(''modarea'', Event.findElement(ev,''li'')), ''blind''); I''ve confirmed that the Effect.toggle is indeed getting the proper element, however, I''m getting this in my javascript console: element.visible is not a function (effects.js: line 153) I
2006 Feb 21
7
accordion (outlook bar thingy) help
Does anybody have a solution that really works nice? I know about: http://wiki.script.aculo.us/scriptaculous/show/accordion%20feature but I was hoping someone had worked out the kinks. I''m really looking for something like: http://openrico.org/rico/demos.page?demo=rico_accordion Thanks for your time. Joe _______________________________________________ Rails-spinoffs mailing list
2006 Feb 10
13
Element.observe () binding
Hey all, I working on a project, but I am not sure I can do what I want to do. The following works beautifully: Event.observe(el, ''click'', function () { this.className += " myClass"; return false; }); I have also tried doing this: this.varname = ''test''; Event.observe(el, ''click'', function () { alert (this.varname); }.bind
2006 Feb 21
2
Ajax status
Hello All. I''m making ajax call to some url but to connect and get data from that url first I check session for user which using AJAX. If session is expired I redirect Ajax call to other url. That url return form to login. There is one problem - I check in function onResponse(OriginalRequest) OriginalRequest status and status is always 200 - whatever I''m logged or not. So i
2006 Mar 15
3
prototype.js Event.stopObserving
anyone have any information on how to effectively use this? Event.observe() doesn''t return anything, and nothing I''ve tried is actually removing the event listeners from the objects. -Jeremy -- Jeremy Kitchen ++ kitchen-RA8HwDor7flnDGu+y90WmgC/G2K4zDHf@public.gmane.org In the beginning was The Word and The Word was Content-type: text/plain -- The Word of Bob.