[Proto-Scripty] Re: Dynamic script file loading

2008-10-17 Thread T.J. Crowder
For anyone coming to this thread later, there's now a (rough) how-to on the unofficial wiki: http://proto-scripty.wikidot.com/prototype:how-to-load-scripts-dynamically -- T.J. :-) On Oct 16, 11:11 am, T.J. Crowder [EMAIL PROTECTED] wrote: Hey Jason, [Call me T.J. :-)] Caveat:  I have not

[Proto-Scripty] Why doesn't this work in Internet Explorer?

2008-10-17 Thread moijk
http://mpdemo.no/mpi/Doc/Moduler/MediaManager/ When I close the node down. that works perfectly. But when I try to open it - using blindUp - That doesn't work. nothing happend in internet explorer. (test it in any browser, then in ie) or it is my ie 8 beta that isn't working perfectly? Well.

[Proto-Scripty] Enumerable context - bug?

2008-10-17 Thread Tomasz Kalkosiński
Hey guys. For Enumerable, according to API Docs I've found: If there is no context argument, the iterator function will preserve the scope it would have anyway. I've came to that: function Person(name) { this.name=name; this.Check=Check; } function Check() { alert(Context is +

[Proto-Scripty] Unofficial wiki - layout question

2008-10-17 Thread T.J. Crowder
Hi folks, The initial let's get something out there layout I did for the unofficial wiki[1] has a clear distinction between Prototype and script.aculo.us. There are separate sections for them, and each section has its own list of Tips, How Tos, etc. In fact, I even had us putting pages about

[Proto-Scripty] Re: Why doesn't this work in Internet Explorer?

2008-10-17 Thread grunk
It's work for me on IE 7.0.5730.13, The blindDown effect is not as fluent as with firefox but it's working On 17 oct, 13:25, moijk [EMAIL PROTECTED] wrote: http://mpdemo.no/mpi/Doc/Moduler/MediaManager/ When I close the node down. that works perfectly. But when I try to open it - using

[Proto-Scripty] Re: Dynamic script file loading

2008-10-17 Thread jason maina
@T.J: This was a time saver on the scripts I have to load on my application as well as have learnt something new Many thanks ;-) Regards Jason On 10/17/08, T.J. Crowder [EMAIL PROTECTED] wrote: For anyone coming to this thread later, there's now a (rough) how-to on the unofficial wiki:

[Proto-Scripty] Re: Enumerable context - bug?

2008-10-17 Thread kangax
On Oct 17, 7:35 am, Tomasz Kalkosiński [EMAIL PROTECTED] wrote: Hey guys. For Enumerable, according to API Docs I've found: If there is no context argument, the iterator function will preserve the scope it would have anyway. Sorry, that's just a poor wording on our side : / By preserve

[Proto-Scripty] Re: Enumerable context - bug?

2008-10-17 Thread Tomasz Kalkosiński
On Oct 17, 3:44 pm, kangax [EMAIL PROTECTED] wrote: Sorry, that's just a poor wording on our side : / By preserve scope it would have anyway it was probably meant that a function is not explicitly bound to any object. The way you understood binding in this case is actually pretty intuitive

[Proto-Scripty] Re: Unofficial wiki - layout question

2008-10-17 Thread Jerod Venema
Hey TJ, My vote is lump it all together. Especially since scripty has its own wiki anyways, there are going to be sections that are really not relevant for scripty. Anyway, I think it makes sense to keep it primarily a prototype wiki, with general tips for other stuff and links out to the

[Proto-Scripty] pass object as function argument - bind?

2008-10-17 Thread pancakes
I have searched around for some answer to this and I have a feeling I could make it work using bind(), but I'm not sure - I'm not exactly understanding the examples and explanations in regard to my example. I am returning a json object from the server/ajax. I am building some page elements

[Proto-Scripty] Re: pass object as function argument - bind?

2008-10-17 Thread T.J. Crowder
Hi, Is this what bind() is for? Can I *bind* my json object to a function that refers back to the original object? FWIW, I'd say it's a clever use of bind(). The question of whether it's what bind() is *for* is kind of moot. (I'd say, on balance, yes it is -- bind() is for binding

[Proto-Scripty] Re: Enumerable context - bug?

2008-10-17 Thread T.J. Crowder
It's kind of understandable why context would behave the way scoping (or rather identifier resolution) works. Oh, completely. It's one of the big, big adjustments people like me have to make coming to JavaScript from C++, Java, C#, etc. All I meant was, having made that adjustment (er,

[Proto-Scripty] Re: pass object as function argument - bind?

2008-10-17 Thread suki rosen
that's great. thanks - I'm glad I was on the right track there. This seems very useful for dealing with ajax data. On Fri, Oct 17, 2008 at 3:33 PM, T.J. Crowder [EMAIL PROTECTED]wrote: Hi, Is this what bind() is for? Can I *bind* my json object to a function that refers back to the

[Proto-Scripty] Re: pass object as function argument - bind?

2008-10-17 Thread T.J. Crowder
Hi again, I will just mention that if you start using logic objects and such on the client side where the handler is a method of the logic object, then this becomes more problematic, since you have two different things you want to do with this: Refer to the logic instance, and refer to the

[Proto-Scripty] Autocomplete not working with ColdFusion

2008-10-17 Thread behaviour
The tutorial that I'm referencing is located here: http://tutorial473.easycfm.com There are many posts of this all over the internet it seems, with slight variations, but this one makes most sense to me. Where it's not working is where it's checking to see if the variable has been passed to

[Proto-Scripty] Re: pass object as function argument - bind?

2008-10-17 Thread Trevan Richins
pancakes wrote: I have searched around for some answer to this and I have a feeling I could make it work using bind(), but I'm not sure - I'm not exactly understanding the examples and explanations in regard to my example. I am returning a json object from the server/ajax. I am building