[Proto-Scripty] Re: Out Of Memory Error in IE7 and IE8

2009-10-23 Thread Jim Higson
IE has lots of memory links, particularly when you have two-way references between js objects and dom nodes. Because of a bug, it never gets properly garbage collected. HTH, Jim On Friday 23 October 2009 12:13:57 Etha wrote: None can help me? On 22 Ott, 14:59, Etha ev.distef...@gmail.com

[Proto-Scripty] Re: in case you want to compress (minify) the current 1.6.1 version and it doesn't work...

2009-10-20 Thread Jim Higson
On Tuesday 20 October 2009 01:12:43 Motig wrote: check these line numbers and add the semicolons there so the web compressors and minifiers will work FWIW, yuicompressor handles 1.6.1 without issue. It gets very good compression and has a proper JS parser (from Rhino) so it is very safe. --

[Proto-Scripty] Re: Question about onmouseover, onmouseout and onclick

2009-10-15 Thread Jim Higson
On Wednesday 14 October 2009 18:01:46 Christophe Decaux wrote: I don't know anything what elegant means, but this would be my way to do it. I'm your onclick handler, set a flag such as menuIsClicked to true and in your onMouseOut handler, test that flag before hiding the image. On to the

[Proto-Scripty] Re: Iframes

2009-10-05 Thread Jim Higson
On Monday 05 October 2009 13:13:13 Alex Mcauley wrote: Afternoon peoples, hope everyone had a good weekend. Got a sligt problem... I have been developing a new app that needs an iframe to upload an image... All of this is done and working properly but i need to use some prototypejs

[Proto-Scripty] Re: YSlow's rule JavaScript at the bottom w/Prototype

2009-09-17 Thread Jim Higson
we'll be using sane logic to build our code. I hope you are right. *suspense* On Sep 16, 3:43 pm, Jim Higson j...@wikizzle.org wrote: On Wednesday 16 September 2009 14:43:32 skaiuoquer wrote: A non-cached medium page on it takes above half a minute to load

[Proto-Scripty] Re: YSlow's rule JavaScript at the bottom w/Prototype

2009-09-16 Thread Jim Higson
On Wednesday 16 September 2009 14:43:32 skaiuoquer wrote: A non-cached medium page on it takes above half a minute to load on T1... That's half a minute where the user is pretty much waiting for the JS files to download one after the other. Concatenate all files into one in the order that

[Proto-Scripty] Re: accessing DOM of iFrame

2009-09-03 Thread Jim Higson
On Thursday 03 September 2009 06:51:19 kangax wrote: On Sep 2, 2:23 pm, Mojito tokyot...@gmail.com wrote: What's the Prototyped syntax equivalent of: window.frames['iFrameID'].document.getElementById ('elementInsideIFrame'); Current version of Prototype doesn't really support

[Proto-Scripty] Copying Prototype into an iframe

2009-06-09 Thread Jim Higson
Hi, As some background, under Moz, Prototype adds to Element.prototype (I think this is correct, I haven't checked the source) the methods become available on every Element. On IE, Prototype can't extend Element.prototype so it wraps the element instead. This gets more complicated when you

[Proto-Scripty] Re: $$ failing in FF3.1b3

2009-03-10 Thread Jim Higson
On Tuesday 10 March 2009 14:06:17 kangax wrote: It's possible that we'll introduce a custom `hasOwnProperty` in later revisions. Makes sense. if( !hasOwnProperty ) hasOwnProperty = function hasOwnProperty(){ ... }; I was thinking of something like: var

[Proto-Scripty] Re: $$ failing in FF3.1b3

2009-03-06 Thread Jim Higson
to Wikipedia the last version was 2.0.4, released 13th January 2006 and was replaced with 3.0.0 on the 11th June 2007. [1] http://erik.eae.net/archives/2005/06/06/22.13.54/ On Mar 5, 6:34 pm, Jim Higson j...@wikizzle.org wrote: On Thursday 05 March 2009 16:16:05 Jim Higson wrote: Hi

[Proto-Scripty] $$ failing in FF3.1b3

2009-03-05 Thread Jim Higson
Hi, Is anybody else finding this? Does Prototype from git work with FF3.1? Thanks, Jim -- Jim my wiki ajaxification thing: http://wikizzle.org my blog: http://jimhigson.blogspot.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[Proto-Scripty] Re: $$ failing in FF3.1b3

2009-03-05 Thread Jim Higson
On Thursday 05 March 2009 16:16:05 Jim Higson wrote: Hi, Is anybody else finding this? Does Prototype from git work with FF3.1? On closer inspection, it is quite easy to get Prototype to throw similar errors even in FF3. It just happens that my present code only provokes it in 3.1

[Proto-Scripty] Reverse sinusodal transition

2009-02-18 Thread Jim Higson
Hi, There are Sinusoidal transitions and Reverse (linear) transitions - is there a way to get a reverse Sinusoidal? Thanks, Jim -- Jim my wiki ajaxification thing: http://wikizzle.org my blog: http://jimhigson.blogspot.com/ --~--~-~--~~~---~--~~ You received

[Proto-Scripty] Re: Reverse sinusodal transition

2009-02-18 Thread Jim Higson
On Wednesday 18 February 2009 15:53:08 Brendan O Connor wrote: run the the same function again using -xCo I use the following moveRight : function(mvePan,xCo){ menuFrag.scrollCnt = menuFrag.scrollCnt + 1; new Effect.Move(mvePan, {duration: .5,

[Proto-Scripty] Re: Reverse sinusodal transition

2009-02-18 Thread Jim Higson
On Wednesday 18 February 2009 16:18:37 Jim Higson wrote: On Wednesday 18 February 2009 15:53:08 Brendan O Connor wrote: run the the same function again using -xCo I use the following moveRight : function(mvePan,xCo){ menuFrag.scrollCnt = menuFrag.scrollCnt + 1

[Proto-Scripty] Re: Move - OnMouseMove- Only once

2009-02-16 Thread Jim Higson
On Sunday 15 February 2009 11:09:28 timbob wrote: The problem is that you are triggering a mousemove event _every_ time you move the mouse within the div, and every single time you create a Move effect. So when you leave the div there is a mouseout event and also the mousemove event from

[Proto-Scripty] Re: Disabling mouseover during an effect

2009-02-13 Thread Jim Higson
How about putting the scrollto in a queue, and checking that the scrollto queue is empty before doing the mouseover effect? I assume the mouseover effect is javascript? If it is css, you could add a class to the body while the scrolling is running (or somewhere else high in the tree) and have

[Proto-Scripty] Re: Prototype bug?

2009-02-11 Thread Jim Higson
On Wednesday 11 February 2009 05:06:55 RobG wrote: The language is designed so you shouldn't need to care.  I think this helps the argument of why functions like isString are not a good idea.  If you want to test for specific properties or features of an object, test for them.  Don't test

[Proto-Scripty] Re: Prototype bug?

2009-02-10 Thread Jim Higson
On Feb 8, 1:19 pm, RobG rg...@iinet.net.au wrote: On Feb 8, 12:55 am, Jim Higson j...@333.org wrote: alert( Object.isString( foo )); // alerts string It alerts true. So it does ^-) alert( Object.isString( new String( foo ) )); // alerts object It alerts false. ^-) again I know

[Proto-Scripty] Re: Prototype bug?

2009-02-10 Thread Jim Higson
Ha. I'm relatively new to JS and I though that ... var s_String = bob; was just a shortcut for var s_LooksLikeAStringButDoesNotGoQuack = new String(bob); I always thought that internally they were the same thing. I think a lot of people who used Javascript for a long time think the

[Proto-Scripty] Re: Prototype bug?

2009-02-10 Thread Jim Higson
What does new String(bob) offer over normal bob? As far as I know, nothing. Hence my assertion that Prototype should treat object strings as if they were a normal string. Hmmm... actually I should have said nothing I've ever found useful :-) With

[Proto-Scripty] Prototype bug?

2009-02-07 Thread Jim Higson
and Prototype should make stuff like this easier. It should return string regardless of how the string was created. Anyone agree I should file this as a bug, or is there a good reason the current behaviour is desirable? Cheers, Jim -- Jim Higson my blog: http://jimhigson.blogspot.com/ wikizzle

[Proto-Scripty] Singleton Class

2009-01-30 Thread Jim Higson
Might be of interest to the list: I just wrote a blog post about a bit of Prototype Singleton code I wrote. Find it here: http://jimhigson.blogspot.com/2009/01/prototype-singleton-classes.html Jim --~--~-~--~~~---~--~~ You received this message because you are