Displaying 20 results from an estimated 1000 matches similar to: "Event.stopObserving and anonymous functions"
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 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 Nov 30
12
Disable autocomplete (Ajax.Autocompleter) on the fly.
I''m sure there is an easy way to do this, but it is one of those things
that is incredibly difficult to search for.
How can I disable an ''Ajax.Autocompleter'' element from working ''on the
fly''? I have a page where I''m using two (I know it''s crazy)
Ajax.Autocompleter elements and once one of them has got a result I
want the other field
2006 Jan 25
0
Making an unload event work with prototype
I found that I couldn''t register an unload event using prototype.
The reason seems to be that prototype registers an unload event which
unregisters all events, including other unload events. It''s commented as
a fix for an IE memory leak.
In case anyone else wants to use unload events, here''s a fix that works
for me, and might work for you. It simply skips unload events
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.
2006 Mar 04
1
RE: Question about event listener highlighting withchild elements
1. Create a separate class that has your highlight/unhighlight behavior
in it, and extend just the element you want to highlight with that
class... like this (also allows you to easily apply this behavior
elsewhere when you need it in the future):
Object.extend(this.el, HighlightBehaviorClass.prototype)
2. When defining your event handlers, assign them to variables so you
have a
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"+
2005 Oct 05
5
InPlaceEditor crash on Safari
Quick question..
I often crash my Safari when using ''Enter'' on InPlaceEditor''s for
submitting.
Works fine on firefox(win & Mac) - no javascript errors.
Anyone else seen this behavior?
(Maybe it is just my alterings of InPlaceEditor :-)
Best Regards
Michael Krog
2006 May 09
5
anyone used the new firefox leak monitor?
One of the Mozilla developer released a new extension to detect JS
memory leaks:
https://addons.mozilla.org/firefox/2490/
If it''s accurate, it might be bad news for Prototype. I have some code
using prototype 1.4 with no leaks, but other code with 1.5 leaks on
every single bindAsEventListener call, and a bunch of other places. Not
sure if it''s just me; I may just be
2006 Feb 23
25
reloading fragments of pages
Hello,
I have a treeview, that works with scriptaculous in order to load the nodes
dynamically.
I also have in the main part of the page, a table with the list of elements.
The lists of elements can be drag-dropped on the treeview in order to move
them around
(they are also draggable on other parts of the page)
I need though, to refresh the treeview to reflect changes when a folder was
moved
2006 Mar 03
3
Ajax.InPlaceEditor - disabling the yellow highlight?
Is there a way to disable Ajax.InPlaceEditor''s yellow rollover highlight?
2006 Jan 20
2
Effect.moveTo??
I cant seem to find an effect to move an element to a given XY position
new Effect.Move(''elid'',{x:10, y:10});
Will move the element 10px down and 10px to the right, but I want to
move my element to 10px from the top left corner of the page.
I know I could find the current position, and do the math to find out
how far to move it, but is there already a built in function in
2006 Mar 16
1
Removing all event listeners
Hey guys
What would you say would be the "Prototype way" of removing all event
listeners from an element?
Thanks
-Rob
2007 Aug 31
5
prototype
Hi,
is there some way to remove all event listeners for the specific
element?
Thanks for help.
--~--~---------~--~----~------------~-------~--~----~
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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group,
2006 Nov 28
1
observe_form, observe_field, dynamic forms help
I made a pretty lengthy post on what I''m doing here:
http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/89a2b8e54a874dd9
Short version:
I have a radio_button group of two. If one is clicked another pair of
radio buttons is added, if the other is clicked it is removed.
observe_form does not work for elements added after initial page load.
observe_field does not work
2006 Jan 10
0
Changes to Autocomplete?
Hi all,
Can anyone confirm if anything has changed in Ajax.Autocompleter (or
Autocompleter[.Base]) in 1.5.1 since 1.5? I've updated to this
version and either something has changed (unlikely) or I've made a
change somewhere that's borked it (much more likely). Events aren't
firing on the text box when I enter input or blur away from the
control ...
Many thanks!
Regards,
Cam
2006 Mar 04
0
Question about event listener highlighting with child elements
I have created a JavaScript object which is initialized for some input
fields, fieldsets, and divs on the page. With each object i attach a
mouseover and mouseout event that highlights and un-highlights. Also on
mouseout i am trying to display the id of the object to a console. The
highlighting works except for cases when an object is the child of another
object. In this case both are highlighted
2005 Dec 06
9
script.aculo.us AutoComplete Woes
I was wondering if someone could help me with an autocomplete problem. I
have the autocomplete div receiving a <UL> that looks like:
<ul>
<li>Name<br>Email</li>
</ul>
When the user hits enter and the value is filled into the text field
it''s putting both the name and email in the field. I just want the name.
Funny this works in Firefox but not IE. I
2005 Aug 31
0
Event listener problems
I''ve been using the bindAsEventListener function and registering
various events I want to monitor and have had some problems which
might be of interest.
First I have been having a crash on Safari 2.0 and 2.0.1. The
logical place to call Event.stopObserving to de-register the listener
is actually within the listener once it has finished its task. eg
register a mouseup listener
2006 Jan 11
0
RE: Event.observer - unordered list problems
Hi Marco (I forwarded this also to the mailing list and removed the
picture as it wasn''t necessary to include to the mailing list so
everyone can hear the general techniques),
I recently had a very similar problem with my project. The problem
arises because whenever you move the mouse to ANY element, the previous
element that the mouse was over gets a mouseout event, even if it