[Proto-Scripty] Re: Prototype Unit Testing Framworks

2009-11-10 Thread Joe Athman
We use JsUnit with prototype successfully. Could you post any additional info about the errors you are getting? What version of prototype/jsunit/browser are you using? I will say that JsUnit seems to be basically on life support so you might want to look in to something else. I've recently

[Proto-Scripty] Stack overflow in IE when using both Ext JS and Prototype 1.6.1

2009-09-11 Thread Joe Athman
This is more of an FYI in case anyone is using Ext and Prototype on a project. I can't exactly figure out why, but something change in the way prototype is defining or using it's defer function from 1.6.0.3 to 1.6.1 which causes a stack overflow to occur in IE6 (and maybe IE7). Ext and

[Proto-Scripty] Re: Ajax.Autocompleter and running scripts in results

2009-04-09 Thread Joe Athman
What you are looking for is the evalScripts option that you can pass to Ajax.Updater. See this page for more information about it: http://prototypejs.org/api/ajax/updater So you could do something like this: new Ajax.Updater('items', '/items', { parameters: { text: $F('text') },

[Proto-Scripty] Re: Is there a obfuscator that works particularly well with Script.aculo.us?

2009-04-08 Thread Joe Athman
From my experience YUI compressor is both extremely good and very safe. I believe they have fixed any of these one off things like $super that could create bugs. We've been using it for well over a year and shrink prototype, scriptaculous, ExtJS, and our own code all together. Works great.

[Proto-Scripty] Re: Event.observer with mouseup?

2009-01-04 Thread Joe Athman
Another alternative is to use Prototype's Curry function which let's you create new functions with default arguments. So you could write: Event.observe(window, 'mouseup', alert.curry('hi')); Joe As long as you know what curry does, I think this is more obvious for really simple examples like

[Proto-Scripty] Re: Bug/Issue with autocompleter in IE7, first request doesn't appear, subsequent requests do

2008-11-20 Thread Joe Athman
this behavior. We are using prototype 1.6.0.1 just fine, but 1.6.0.3 on IE6 causes us problems here. Does anyone else have thoughts? Joe On Nov 18, 4:10 pm, Joe Athman [EMAIL PROTECTED] wrote: We are having this exact same problem, although it only seemed to pop up with version 1.8.2.  We have been