similar to: prototype.js Event.stopObserving

Displaying 20 results from an estimated 1000 matches similar to: "prototype.js Event.stopObserving"

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 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
2006 Mar 09
2
extending an existing DOM object in a prototype way
I want to take an existing DOM object and extend it with some functionality. I know there''s a way to do this with prototype. Unfortunately, I''m not entirely sure how to do this. Basically, I want to take an existing DOM object and turn it into a ''widget'' by adding some functionality. say we have a span: <span id="blah">some text
2006 Jun 29
3
dynamic generation of iframes and writing to them
Hello Everyone, I would like to get some suggestions on a problem I am trying to address. - I send a request to a 3rd party server (for ads) and a response is received from them. - Currently, I display it inline on the page and things work fine but page loading is slow and the 3rd party response can mess up styles, js on my page. - So, I want to capture this response and dynamically generate
2006 May 20
10
Changing the height of LI elements to achieve such an effect?
Hi Everybody, I was wondering if there is such a work done with Scriptaculous/Prototype before and if not how to achieve it? Example : http://www.anatolip.com/ It is done with codes borrowed from moofx and his own codes. Thanks in advance Danial _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
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 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 Feb 01
2
IE memory fix leak.
By default the prototype.js gives us the function /* prevent memory leaks in IE */ Event.observe(window, ''unload'', Event.unloadCache, false); But there is no unload event in out application as the content of the div keeps changing using the Ajax.Updater function. To handle such a scenario, we''ve added the following lines of code to prototype.js /* prevent
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 Jun 15
3
RE: Yahoo!-like Event object emulation/abstractionin Prototype?
Event.observe(myelement, ''click'', myfunc.bindAsEventListener()); That might fix your wagon. Greg > -----Original Message----- > From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-spinoffs- > bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Sam Rowe > Sent: Thursday, June 15, 2006 11:24 AM > To:
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 May 01
2
[prototype] Selector class fails on selector strings with spaces
I just ran across this bug when trying to re-create Ben Nolan''s behaviour.js with prototype and was wondering if anyone had fixed it before I went re-inventing the wheel :) Thanks! -Jeremy -- Jeremy Kitchen ++ kitchen-RA8HwDor7flnDGu+y90WmgC/G2K4zDHf@public.gmane.org http://ipaction.org/ -- defend your rights to fair use _______________________________________________
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 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 Dec 14
17
Should Event.stopObserving() remove itself from cache?
Just wondering why Event.stopObserving() doesn''t remove the itself from the Event.obervers array? Is there a reason for this? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to
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 Oct 20
1
Event.observe vs. element.onxxx =
What are the pros and cons of using Event.observe vs. element.onxxx = somefunction ? I noticed that a lot of sau code doesn''t use Event.observe. For example, InPlaceEditor uses this.form.onsubmit = this.onSubmit.bind(this); In my code I''ve made a habit of using the equivalent (for example): this.onSubmitListener = this.onSubmit.bind(this);
2006 Feb 02
3
dynamic addition of table rows
Hi, I have a table laid out something like this: <table> <thead> <tr> <th>col 1</th> <th>col 2</th> </tr> </thead> <tbody id="tablebody"> <tr> <td>moo</td> <td>moo</td> </tr> <tr> <td>moo</td> <td>moo</td> </tr>
2006 Jan 11
2
extending the Element.prototype to provide a setAttributes function
Hi folks, I''m pretty new to javascript and prototype, so I just want to get some peer-review on a function I wrote that makes a handy (at least, it seems handy) way to set a group of attributes on an element easily. Object.extend(Element.prototype, { setAttributes: function(attrs) { var el = this; $H(attrs).each( function(attr) { el.setAttribute(attr[0], attr[1]);