Displaying 20 results from an estimated 30000 matches similar to: "anyone used the new firefox leak monitor?"
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 Jun 15
10
RE: Yahoo!-like Event object emulation/abstractioninPrototype?
If that doesn''t work, then you''ve done something wrong somewhere.
''Cause it works for IE for me and everyone else.
The only advantage I see with the YUI toolkit is that it''ll defer
attaching events to elements that do not yet exist in the DOM. Big
whoop, only a sloppy programmer would try to attach an event to a
non-existant element. With Prototype, you can
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 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 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 Mar 03
11
event.keyCode broken in prototype?
I ran 2 tests. One using proto''s Event.observe, and another using an
in-line handler of the "keydown" event in a textbox.
Using .bindAsEventListener, the event.keyCode is always returning a
capital letter, no matter what. The in-line event handler returns
lowercase vs. uppercase correctly... What''s going on?
I guess I find it hard to believe no one has tried
2006 Apr 29
4
Event.observe mystery
Hi,
I have a class ''Menu'' with a method ''addItem''. The method (simplified)
looks like this:
addItem: function(itemId, text)
{
this.container.innerHTML += ''<div id="''+itemId+''">''+text+''</div>'';
Event.observe(itemId, ''mouseover'',
2006 Jun 15
4
Yahoo!-like Event object emulation/abstraction in Prototype?
Hi,
I was reading about the Yahoo! library recently and was really
excited by the idea that I wouldn''t have to branch for IE in my
event handlers. Is there any chance that such abstraction will come
to Prototype?
Thanks,
Sam
2006 Feb 02
8
this pointer in Event.observe function
Hello,
please consider the following code example. It applies the onclick handler to
all image tags, and through window.event it ensures that it works in IE too:
--------------------------------------------------
var imgs = $(''foo'').getElementsByTagName(''img'');
for(var i=0; i<imgs.length; i++) {
// Apply onclick handler
imgs[i].onclick=function() {
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 May 09
12
prototype: leak with Element.extend
Had a nasty memory leak that was seriously slowing down the browser and
eating up a couple megabytes every reload. I was using:
$$(''.dyntable'').each(function(elm) { new DynTable(elm) });
To set up my behavior, but discovered that just running:
$$(''.dyntable'');
Caused the memory leak all by itself.
The fix I found for it was to change Element.extend to a
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
2005 Dec 18
3
JavaScript question
Hi guys,
I know this is not the perfect place to ask this question, but I''m
struggling with object-oriented javascript and event-handlers and you
guys are probably the only ones adept enough to help me out with this.
I have this calendar code I hate (and still have to maintain ;) and
wanted to change it to use object-orientation.
So I have written a JavaScript-class called
2006 Mar 16
3
This is driving me crazy!!!
I have the following code but it keeps on giving me this error when it
runs.
--- Error: this.alertBox has no properties
What would be causing this? My Code checks out when I call
this.alertBox() from the setup function it works fine but when I try and
put in on an event observer it doesn''t work.
What do you guys think?
Thanks,
Jon
Code Here:
var Updater =
2006 Jun 15
3
RE: Yahoo!-like Eventobjectemulation/abstractioninPrototype?
This is obviously rough draft and not thoroughly tested, but it seems to
work. If you''d like, give it a try (load it after you load
prototype.js):
Function.prototype.bindAsEventListener = function(object) {
var __method = this;
return function(event) {
return __method.call(object, new SuperEvent(event || window.event));
}
}
var SuperEvent = Class.create();
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 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 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
2006 Jan 02
2
First time class problems
Hi,
I''ve just had my very first attempt of making a JavaScript class,
"prototype" style, so please bare with me, for any disastrous errors :-)
Anyway, I''ve made this class, which is called on an input field on focus:
http://pastebin.com/487417
It works fine in FireFox, but causes some problems in IE. My question is
regarding line 69 in the paste. What is
2005 Oct 25
24
InPlaceEditor scrolls to top in Firefox?
When I click an InPlaceEditor field in Firefox 1.0.7, the page scrolls
up to the top. That''s disconcerting, and often ends up with the
editable field out of the viewable pane. I can duplicate this on both
Mac and PC. Is there a way to prevent this? Even the demo at
http://wiki.script.aculo.us/scriptaculous/show/Ajax.InPlaceEditor does
this.
Jay Levitt