Re: [Rails-spinoffs] prototype: leak with Element.extend

2006-05-09 Thread nick hemsley
OK, I have a solution that appears to work for me, tested on firefox & IE. Basically here is the crux of it for those that need it nowish, I will put it on trac when I get the time:Element.extend = function(element) {   if (!element) return;  if (!element._extendedMethods) element._extendedMethods

Re: [Spam] Re: [Rails-spinoffs] Dynamically printing a page

2006-05-09 Thread Jesse Kuhnert
Here's a good article for learning how google does some of their iframe fun :)http://alex.dojotoolkit.org/?p=545On 5/9/06, Jaimz <[EMAIL PROTECTED]> wrote: from what i understand google maps loves thier iframes!if i get the time to tinker with it i'll let you know.-JaimzJim Geurts wrote:> I'm real

Re: [Spam] Re: [Rails-spinoffs] Dynamically printing a page

2006-05-09 Thread Jaimz
from what i understand google maps loves thier iframes! if i get the time to tinker with it i'll let you know. -Jaimz Jim Geurts wrote: I'm really not all that concerned with supporting IE on the mac. I'm fine with telling mac users to ditch IE. Google maps seems to do exactly what I want,

Re: [Spam] Re: [Rails-spinoffs] Dynamically printing a page

2006-05-09 Thread Jim Geurts
I'm really not all that concerned with supporting IE on the mac.  I'm fine with telling mac users to ditch IE.  Google maps seems to do exactly what I want, but I haven't dissected it to see how they accomplished it... perhaps it's time for that :( On 5/9/06, Jaimz <[EMAIL PROTECTED]> wrote: well,

Re: [Spam] Re: [Rails-spinoffs] Dynamically printing a page

2006-05-09 Thread Jaimz
well, if you want to be safe to think that your page is compatible with all used browsers then you shouldn't force print. IE on mac doesn't support window.print(); you could just show the page and let them print it. otherwise i'd say the iframe is your best bet ;) -Jaimz Jim Geurts wrote: So

Re: [Rails-spinoffs] Dynamically printing a page

2006-05-09 Thread Jim Geurts
Sorry about that.  I want to print a separate page when the user clicks a button/span, without navigating the user to that page.On 5/9/06, Jaimz < [EMAIL PROTECTED]> wrote:i'm kinda lost about what your trying to accomplish, if your trying to print a page's content in a printer friendly form you ca

Re: [Rails-spinoffs] Dynamically printing a page

2006-05-09 Thread Jaimz
i'm kinda lost about what your trying to accomplish, if your trying to print a page's content in a printer friendly form you can use CSS for that. -Jaimz Jim Geurts wrote: Does anyone know of a cross browser solution to print a page/url after a user clicks a button? Currently, I'm using a "h

[Rails-spinoffs] Dynamically printing a page

2006-05-09 Thread Jim Geurts
Does anyone know of a cross browser solution to print a page/url after a user clicks a button?Currently, I'm using a "hidden" iframe to do my bidding.  But from my experience, IE requires that the iframe's src attribute be set initially to the url, in order for the page to open properly.  I wasn't

[Rails-spinoffs] [semi-OT] Find position of floated elements

2006-05-09 Thread Brad Ediger
I am trying to find the actual _displayed_ position of a floated element using Javascript. Does anyone know of a technique to do this? I know that per the CSS2 spec, floated elements are removed from the flow and thus don't really have a position (AFAIK). However, I am trying to find the po

RE: [Rails-spinoffs] anyone used the new firefox leak monitor?

2006-05-09 Thread Maninder, Singh
Yes, I too am seeing tonnes of leaks with prototype 1.5.   Will try downgrading to the version you mention and check again.   Sigh! And I was thinking leaks only happen in IE ;) -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Gregory HillSen

RE: [Rails-spinoffs] [ANN] Tooltips v1.1 Released

2006-05-09 Thread Joe Hudson
Thanks Ed. I hadn't thought of it but I really like what you mentioned about the remote ajax tooltips. I really love what you are doing. In fact, several months ago, I was looking for a good tooltip library in the mailing list and have never really found anything I like. But, I think this is go

RE: [Rails-spinoffs] anyone used the new firefox leak monitor?

2006-05-09 Thread Gregory Hill
Downgraded to scriptaculous 1.5.3 and prototype 1.4 and the leaks went away with the exact same code.  So, it’s definitely a Prototype problem.   Thomas, maybe you could talk to Sam about it.  I’ve emailed him in the past, but he never responds.  It probably has to do with the new Element

[Rails-spinoffs] anyone used the new firefox leak monitor?

2006-05-09 Thread Gregory Hill
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 bindAsEv

[Rails-spinoffs] Re: inPlaceEditor and onClick Event

2006-05-09 Thread Grzesiek Slusarek
Deco write: " The inPlaceEditor has an externalControl option if I remember. Set this to the id of the item that will trigger the editor. Deco " Ok i found in documentation but how to do this, when i have to use this in event procedure?? i have div that when i clicked on i want to trigger the

Re: [Rails-spinoffs] [ANN] Tooltips v1.1 Released

2006-05-09 Thread Ed C.
Joe -- Currently the tooltips are bound to the links mouse over/out events, but I'll keep that in mind for future release(s) Thanks for the feedback! e. On 5/9/06, Joe Hudson <[EMAIL PROTECTED]> wrote: Yeah, I looked at the demo and it really is great. Is there any way that you can optionally

Re: [Rails-spinoffs] [ANN] Tooltips v1.1 Released

2006-05-09 Thread Ed C.
Brice -- Currently it only iterates through a list of links and extracts the href & title attributes. For future release(s), I'm toying with the idea of "rich" tooltips: "local", via html string or possibly scriptaculous Builder nodes, and "remote" via URL + Ajax. (Similar in feel to Netflix's

Re: [Rails-spinoffs] prototype: leak with Element.extend

2006-05-09 Thread nick hemsley
Turns out this is causing (at least some) of the problems I have been having with IE bloating.The culprit as far as I can tell is the bind call (anon function & dom element, not too sure why this is a circular reference though) in Element.extend. I have been having a poke around, but I can't think

[Rails-spinoffs] Autocompleter quirk and my proposed fix.

2006-05-09 Thread Daniel Elmore
Under heavy server load, my autocompleter was doing something strange. The ajax requests were coming back out of order. For example in a contact name search if I typed: dan I would get responses like so: Result set for: d Result set for: dan Result set for: da So once the typing stopped I would b