[Proto-Scripty] How do I use AjaxRequest to POST checkboxes which is an array, not a variable?

2009-08-23 Thread desbest
How do I use AjaxRequest to POST checkboxes which is an array, not a variable? [code] = function addEvent(day, month, year, body, involved) { if(day && month && year && body && involved) { //alert('Add Event \n

[Proto-Scripty] Draggable Callbacks

2009-08-23 Thread Rob
Can someone show me an example/explanation of how to use a callback in a scriptaculous draggable? I have no problem making things draggable, but I can't figure out how to use the callbacks such as onEnd. I couldn't find one on the wiki. Thanks --~--~-~--~~~---~--~

[Proto-Scripty] Re: to NEW or not to NEW, that is the question

2009-08-23 Thread T.J. Crowder
Hi, > If I want to quickly develop without looking up whether I need NEW or > don't need NEW, can I just put NEW in front of everything? Surely it's better to have an idea what you're actually using, a function or a constructor? There aren't that many effects. If you use `new` inappropriately,

[Proto-Scripty] Re: scope of "this" in anonymous functions

2009-08-23 Thread T.J. Crowder
Hi, > myMethod(). I suspect this has something to do with the "this" scope > in my anonymous function. It's true that `this` within the function will not be what it was outside the function unless you do something to make it so, and certainly that would need to be fixed if you were going to do

[Proto-Scripty] Re: How to use Ajax.Updater evalScripts

2009-08-23 Thread bill
It may not be as elegant as the solution suggested here, but I got it to work by wrapping the Ajax.Updater in a function called by onsubmit and placed in the main page. But, I still would like to know how to have evalScripts:true work. bill bill wrote: > I download a html fragment to a div usi

[Proto-Scripty] Re: Delete page on Scriptaculous Wiki

2009-08-23 Thread Walter Lee Davis
He is Thomas Fuchs, his blog is at http://mir.aculo.us and he also is found lecturing at various conferences around the world. He is currently working on scripty2, which is in alpha and will no doubt revolutionize the world once again as soon as it's done. He's a busy guy, but you could al

[Proto-Scripty] inPlaceEditor onComplete is called when I hit cancel

2009-08-23 Thread Mojito
How do I make inPlaceEditor's onComplete callback function only called when I hit "OK", and not "cancel"? I want to force someone to complete the form before they can continue on the page. Hitting cancel should not let them continue. --~--~-~--~~~---~--~~ You rece