[Proto-Scripty] Re: Scoping prototype

2009-03-15 Thread Ryan Gahl
Sure... one quick and dirty way that comes to mind is to AJAX in the prototype.js file (of course, using a lightweight or homebrewed Ajax abstraction)... (function() { someAjaxAPI.request(pathToPrototype, onSuccess); function onSuccess(responseText) { eval(responseText); //use prototype in

[Proto-Scripty] Re: Scoping prototype

2009-03-15 Thread Josh Powell
First, thanks for the reply. This seemed like it should work to contain Prototype, but it doesn't... $(function() { console.log($('mySelect')); (function() { $.getScript('/cfgmgr/js/lib/prototype-1.6.0.3.js', function() { console.log($('mySelect'));