[Proto-Scripty] SlideUp/SlideDown Effects

2011-04-06 Thread Ryan
: (effect.dims[0] - effect.element.clientHeight) + 'px'}); }, This almost did what I was looking for, but I believe a clear div is still moving upward causing the effect to start out good and end completely wrong. Thanks Ryan -- You received this message because you are subscribed

Re: [Proto-Scripty] Why is there a $super-Parameter?

2011-03-18 Thread Ryan Gahl
The answer is quite simple: because it's convenient. Convenience is an interesting thing. You seem to be a logical type, postulating that there must be something beyond just convenience here, because if it can be done without this construct, why add the construct, right? That takes the human part

Re: [Proto-Scripty] Re: Why is there a $super-Parameter?

2011-03-18 Thread Ryan Gahl
On Fri, Mar 18, 2011 at 9:30 AM, T.J. Crowder t...@crowdersoftware.comwrote: Prototype's magical `$super` comes at a marked runtime cost Just want to point out that the marked runtime cost is only at class definition time, not instance creation nor method call time. So yeah, the performance

Re: Risky delay (was: Re: [Proto-Scripty] Re: Prototype / IE6 issue (bug?))

2010-11-18 Thread Ryan Gahl
On Thu, Nov 18, 2010 at 9:26 PM, RobG rg...@iinet.net.au wrote: Using onclick or onchange for a select element is a bad choice No, using onchange is actually the correct choice. He's using onclick on option elements instead of onchange (again, the correct event) on the select element. --

Re: Risky delay (was: Re: [Proto-Scripty] Re: Prototype / IE6 issue (bug?))

2010-11-18 Thread Ryan Gahl
On Thu, Nov 18, 2010 at 9:36 PM, Ryan Gahl ryan.g...@gmail.com wrote: On Thu, Nov 18, 2010 at 9:26 PM, RobG rg...@iinet.net.au wrote: Using onclick or onchange for a select element is a bad choice No, using onchange is actually the correct choice. He's using onclick on option elements

Re: Risky delay (was: Re: [Proto-Scripty] Re: Prototype / IE6 issue (bug?))

2010-11-17 Thread Ryan Gahl
myselect = Event.element(e); // e === the select var val = myselect.options[myselect.selectedIndex].value; note: pseudocode but you should be able to get it from there. --- Warm Regards, Ryan Gahl On Wed, Nov 17, 2010 at 10:33 AM, Phil Petree phil.pet...@gmail.com wrote: Amen! Well said

Re: Risky delay (was: Re: [Proto-Scripty] Re: Prototype / IE6 issue (bug?))

2010-11-17 Thread Ryan Gahl
Sure... but my point was simply that dude was doing it wrong listening for click events on option elements, which is why he's having the issue he's having. --- Warm Regards, Ryan Gahl On Wed, Nov 17, 2010 at 2:38 PM, Walter Lee Davis wa...@wdstudio.comwrote: On Nov 17, 2010, at 1:16 PM

[Proto-Scripty] Targeting all elements

2010-07-15 Thread Ryan
clicked. It would appear that this is a simple task, but having never worked with prototype, what I've tried so far hasn't worked. If anyone could point me in the right direction, I'd appreciate it. Thanks, Ryan -- You received this message because you are subscribed to the Google Groups

[Proto-Scripty] Re: Class.create and this keyword

2009-08-03 Thread Ryan Gahl
Oops, sorry for the weird formatting... On Mon, Aug 3, 2009 at 6:38 PM, Ryan Gahl ryan.g...@gmail.com wrote: Let me suggest the module pattern - which not inconsequently also enables true private fields and methods (just because it seems you're looking for alternative patterns). Also, since

[Proto-Scripty] Re: Classes vs Objects - Best Practice?

2009-05-11 Thread Ryan Gahl
Louis, Your error is that you should not be using the new keyword before Class.create() Class.create() is a helper function that essentially just returns a function. Note, in js, all named functions are considered constructors. Obviously, a function that has no prototype properties and sets not

[Proto-Scripty] Re: Ajaxio next step?

2009-05-04 Thread Ryan Gahl
You might want to try WireIt: http://javascript.neyric.com/wireit/ It seems like a much more complete project. Ryan Gahl CEO Nth Penguin, LLC http://www.nthpenguin.com -- Inquire: 1-920-574-2218 Blog: http://www.someElement.com LinkedIn Profile: http://www.linkedin.com/in/ryangahl On Mon, May

[Proto-Scripty] How to extend Element method and apply it to all the elements

2009-05-01 Thread ryan
I want to rewrite getOffsetParent of element object. I created a js file which is loaded after prototype file, and within it , I have following code // Object.extend(Element, {getOffsetParent : function(element) { alert('get new offset');}}); / which

[Proto-Scripty] Re: How to extend Element method and apply it to all the elements

2009-05-01 Thread ryan
) if (Element.getStyle(element, 'position') != 'static') return $(element); return $(document.body); }}); this is a patch for prototype1.6.0.3 bug #11007 On May 1, 3:44 pm, ryan ryansu...@gmail.com wrote: I want to rewrite getOffsetParent of element object. I created a js file which

[Proto-Scripty] Re: Help with binding

2009-04-11 Thread Ryan Gahl
to be scope corrected via .bind(). Ryan Gahl CEO Nth Penguin, LLC http://www.nthpenguin.com -- Inquire: 1-920-574-2218 Blog: http://www.someElement.com LinkedIn Profile: http://www.linkedin.com/in/ryangahl On Sat, Apr 11, 2009 at 4:46 PM, kstubs kst...@gmail.com wrote: T.J. Ryan, First

[Proto-Scripty] Re: Help with binding

2009-04-10 Thread Ryan Gahl
replies :) Ryan Gahl CEO Nth Penguin, LLC http://www.nthpenguin.com -- Inquire: 1-920-574-2218 Blog: http://www.someElement.com LinkedIn Profile: http://www.linkedin.com/in/ryangahl On Fri, Apr 10, 2009 at 5:39 AM, T.J. Crowder t...@crowdersoftware.comwrote: Hi, this.MSOFindForm.getInputs

[Proto-Scripty] Re: Help with binding

2009-04-10 Thread Ryan Gahl
That's not bind(), that's Event.observe(). bind() is general-purpose, knows nothing about events. D'oh! That's an obvious blunder in my reply. Thanks :) Ryan Gahl CEO Nth Penguin, LLC http://www.nthpenguin.com -- Inquire: 1-920-574-2218 Blog: http://www.someElement.com LinkedIn Profile

[Proto-Scripty] Please indicate me what 'preInitCallback' is

2009-04-10 Thread ryan
this is a script from an open source script. there is a preInitCallback defined as boolean(i mean, it's inited as fault), but in the initGrid function, it's working like a function (this.preInitCallback(this);). So is this a special usage of prototype? this code confused me so much, any help will

[Proto-Scripty] Re: Help with binding

2009-04-09 Thread Ryan Gahl
... var func = { test: function() { return this.name; }.bind(this) } Ryan Gahl CEO Nth Penguin, LLC http://www.nthpenguin.com -- Inquire: 1-920-574-2218 Blog: http://www.someElement.com LinkedIn Profile: http://www.linkedin.com/in/ryangahl On Thu, Apr 9, 2009 at 2:36 PM, kstubs kst...@gmail.com

[Proto-Scripty] Re: Help with binding

2009-04-09 Thread Ryan Gahl
it as a named param). If not, try the legacy .bindAsEventListener() instead of .bind(). Ryan Gahl CEO Nth Penguin, LLC http://www.nthpenguin.com -- Inquire: 1-920-574-2218 Blog: http://www.someElement.com LinkedIn Profile: http://www.linkedin.com/in/ryangahl On Thu, Apr 9, 2009 at 3:59 PM, kstubs kst

[Proto-Scripty] Re: Help with binding

2009-04-09 Thread Ryan Gahl
Let's back up... give me the whole blob of code... sorry I thought func was being executed AS an element event handler, but it's clearly not. If you paste in the rest of the (relevant) code as it sits now I can help you fix it up. Ryan Gahl CEO Nth Penguin, LLC http://www.nthpenguin.com

[Proto-Scripty] Re: Help with binding

2009-04-09 Thread Ryan Gahl
); return; } // if we made it this far, call the find __find(input); } Ultimately, though, you should be attaching your listeners via javacript, which in this case will probably make life a little easier. Ryan Gahl CEO Nth Penguin, LLC http://www.nthpenguin.com -- Inquire: 1-920-574-2218

[Proto-Scripty] Re: binding this

2009-04-08 Thread Ryan Gahl
pattern, but that's a whole other topic). Make sure you take a look at the API docs at prototypejs.org too. Ryan Gahl CEO Nth Penguin, LLC http://www.nthpenguin.com -- Inquire: 1-920-574-2218 Blog: http://www.someElement.com LinkedIn Profile: http://www.linkedin.com/in/ryangahl On Wed, Apr 8

[Proto-Scripty] Re: Proposal for improving bind() + adding unbind() support

2009-03-15 Thread Ryan Gahl
What this all means is that these 2 expressions are functionally identical (considering that they are called from within the same execution context): myElement.observe('click', onClick.bind(this)); myElement.observe('click', onClick.bindAsEventListener(this)); FWIW, this was not always

[Proto-Scripty] Re: Proposal for improving bind() + adding unbind() support

2009-03-15 Thread Ryan Gahl
So, (sorry not to capture all this in a single post)... To re-iterate, Kangax, you _should_ be using .bindAsEventListener in your first case if you want to guarantee backwards X-browser support. On Sun, Mar 15, 2009 at 9:52 AM, Ryan Gahl ryan.g...@gmail.com wrote: On Sun, Mar 15, 2009 at 9

[Proto-Scripty] Re: Proposal for improving bind() + adding unbind() support

2009-03-15 Thread Ryan Gahl
What do you mean by backwards X-browser support? Come on dude, really? You didn't get what I was saying there? I meant cross browser support, including older browsers. Even if I was wrong on the details, I thought that phrase was fairly self explanatory... guess not. Just like I said, IE

[Proto-Scripty] Re: Scoping prototype

2009-03-15 Thread Ryan Gahl
your (function(){})(); module... Ryan Gahl CEO Nth Penguin, LLC http://www.nthpenguin.com -- Inquire: 1-920-574-2218 Blog: http://www.someElement.com LinkedIn Profile: http://www.linkedin.com/in/ryangahl On Sun, Mar 15, 2009 at 1:24 PM, seasoup seas...@gmail.com wrote: Is it possible

[Proto-Scripty] Re: Mass AJAX Requests

2009-03-11 Thread Ryan Gahl
I call a PHP Page !! That's your error :) (kidding, of course) ... As TJ said, we need more than details than I'm trying to do X, and it's not working, what do I do?? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[Proto-Scripty] Re: Proposal for improving bind() + adding unbind() support

2009-03-11 Thread Ryan Gahl
today as I'm in a very crunchy crunch time on a project right now... but needless to say, I'll definitely be throwing your implementation into our framework to see what gains we can get (in those places we still have .bind()'s peppered around). Ryan Gahl CEO Nth Penguin, LLC http://www.nthpenguin.com

[Proto-Scripty] Re: Proposal for improving bind() + adding unbind() support

2009-03-11 Thread Ryan Gahl
If we recast our example to use a named function for the handler: function init() { var container; container = $('container'); hookUpHideables(container); container.show(); function hookUpHideables(p) { p.select('.hideable').invoke('observe', 'click',

[Proto-Scripty] Re: Scrolling Tables

2009-03-11 Thread Ryan Gahl
Have you tried using thead and tbody, and placing the overflow setting on the tbody? Ryan Gahl CEO Nth Penguin, LLC http://www.nthpenguin.com -- Inquire: 1-920-574-2218 Blog: http://www.someElement.com LinkedIn Profile: http://www.linkedin.com/in/ryangahl On Wed, Mar 11, 2009 at 11:21 AM, Lee

[Proto-Scripty] Re: Proposal for improving bind() + adding unbind() support

2009-03-11 Thread Ryan Gahl
Has that been tested with deferral? Ryan Gahl CEO Nth Penguin, LLC http://www.nthpenguin.com -- Inquire: 1-920-574-2218 Blog: http://www.someElement.com LinkedIn Profile: http://www.linkedin.com/in/ryangahl On Wed, Mar 11, 2009 at 1:13 PM, Tobie Langel tobie.lan...@gmail.comwrote: Actually

[Proto-Scripty] Re: Proposal for improving bind() + adding unbind() support

2009-03-10 Thread Ryan Gahl
a bunch of binding, I just create the var me = this; variable at the top of whatever scope I'm currently in. Ryan Gahl CEO Nth Penguin, LLC http://www.nthpenguin.com -- Inquire: 1-920-574-2218 Blog: http://www.someElement.com LinkedIn Profile: http://www.linkedin.com/in/ryangahl On Tue, Mar 10

[Proto-Scripty] Re: Proposal for improving bind() + adding unbind() support

2009-03-10 Thread Ryan Gahl
, args.concat($A(arguments))); } } So in all cases, it's less overhead to just not use .bind(). It's purely a convenience method. Ryan Gahl CEO Nth Penguin, LLC http://www.nthpenguin.com -- Inquire: 1-920-574-2218 Blog: http://www.someElement.com LinkedIn Profile: http://www.linkedin.com

[Proto-Scripty] Re: Proposal for improving bind() + adding unbind() support

2009-03-10 Thread Ryan Gahl
for the function is not set aside until it's actually needed (assuming you use var foo = function() {}; instead of function foo() {}, as the latter results in memory allocation immediately with some interpreters). So it _can_ be good design. Ryan Gahl CEO Nth Penguin, LLC http://www.nthpenguin.com

[Proto-Scripty] Re: Script runtime prompt

2009-02-18 Thread Ryan Gahl
understandably takes a long time. Thnx In advance, dj -- Ryan Gahl CEO Nth Penguin, LLC http://www.nthpenguin.com -- Inquire: 1-920-574-2218 Blog: http://www.someElement.com LinkedIn Profile: http://www.linkedin.com/in/ryangahl --~--~-~--~~~---~--~~ You received

[Proto-Scripty] Re: Builder.js not loading?

2009-02-12 Thread Ryan Gahl
-- Ryan Gahl CEO Nth Penguin, LLC http://www.nthpenguin.com -- WebWidgetry.com / MashupStudio.com Future Home of the World's First Complete Web Platform -- Inquire: 1-920-574-2218 Blog: http://www.someElement.com LinkedIn Profile: http://www.linkedin.com/in/ryangahl

[Proto-Scripty] Re: Builder.js not loading?

2009-02-12 Thread Ryan Gahl
BTW... very nice looking site there :) On Thu, Feb 12, 2009 at 1:39 PM, Ryan Gahl ryan.g...@gmail.com wrote: The problem is that you are using defer in your script include tags, which in IE makes the order they load an indeterminate thing. So what's happening is scriptaculous is trying

[Proto-Scripty] Re: Using JSON/AJAX for more than just scalar data.

2009-01-28 Thread Ryan Gahl
to incrementally add functionality to the client as they move around the site. Regards, Richard Quadling. -- - Richard Quadling Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498r=213474731 Standing on the shoulders of some very clever giants! -- Ryan Gahl

[Proto-Scripty] Re: Using JSON/AJAX for more than just scalar data.

2009-01-28 Thread Ryan Gahl
Ugh... I had a lot of typos there. Excuse me as I drink my morning coffee here :) On Wed, Jan 28, 2009 at 9:16 AM, Ryan Gahl ryan.g...@gmail.com wrote: More specifically, make sure it returns javascript (not just the data), and uses on of those content types... There is a pattern

[Proto-Scripty] Re: Using JSON/AJAX for more than just scalar data.

2009-01-28 Thread Ryan Gahl
Heh... nope, you got it. Just don't forget to include the semicolon at the end when you return the jsonp version. On Wed, Jan 28, 2009 at 9:37 AM, Richard Quadling rquadl...@googlemail.comwrote: 2009/1/28 Ryan Gahl ryan.g...@gmail.com: Ugh... I had a lot of typos there. Excuse me as I

[Proto-Scripty] Re: Calling other website server url

2009-01-04 Thread Ryan Gahl
in xyz.com/home.jsp. In this page i want to call new Ajax.Request('http://www.abc.com/result.jsp?id=1001') -- Jerod Venema Frozen Mountain Software http://www.frozenmountain.com/ 919-368-5105 -- Ryan Gahl CEO Nth Penguin, LLC http://www.nthpenguin.com -- WebWidgetry.com

[Proto-Scripty] Re: Fade My Pages?

2008-11-21 Thread ryan
PROTECTED] wrote: Oh wow... Hate to be the bearer of bad news Ryan, but not really You can attach an event listener to an area object, which you could attempt to harness a fade, but that would require you to make a lot of edits to the image maps. Secondly, the entire page is one image, if you

[Proto-Scripty] Fade My Pages?

2008-11-20 Thread ryan
/toy301.html Word, thank you if any one can help me. I've got a ton of pages to edit! Ryan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email

[Proto-Scripty] Re: Prototype wiki?

2008-10-07 Thread Ryan Gahl
vague promises, as so many attempts were made and slowly disappeared. More on this soon... whiteShadow -- Ryan Gahl Manager, Senior Software Engineer Nth Penguin, LLC http://www.nthpenguin.com -- WebWidgetry.com / MashupStudio.com Future Home of the World's First Complete Web Platform

[Proto-Scripty] How to dynamically send multiple forms in one Ajax.Request

2008-10-01 Thread Ryan
Im looking to create a single ajax post request and send multiple forms as parameters. The form id's are created dynamically thus I cannot list each form as a parameter within the javascript code. Instead I've tried: parameters: $$('form').serialize(true), ...but no luck. Form elements across

[Proto-Scripty] Re: how can we make XHR (AJAX ) calls to other domain ?

2008-09-17 Thread Ryan Gahl
. Can anyone please guide us on why the ajax(XHR) calls/requests are not working when placed on other doman. Regards rama -- Thanks, Diogo Neves Web Developer @ SAPO.pt by PrimeIT.pt -- Ryan Gahl Manager, Senior Software Engineer Nth Penguin