[Proto-Scripty] Re: Draggable Callbacks

2009-08-24 Thread Alex McAuley

Most on* (onEnd, onFailure etc etc) work with javascript object notation

onBlah : function(event,element) {

do Something

}
if you ever want to see whats passed to it as a reference...

Most proto/scripty pass the event and the element with exception to Ajax 
stuff that passes different objects - you can find out those on the 
prototype api page

Even if something passes back only the event you can always backtrack to the 
element with Event.element(event);

Hope this helps



Alex Mcauley
http://www.thevacancymarket.com
- Original Message - 
From: "Rob" 
To: "Prototype & script.aculo.us" 
Sent: Monday, August 24, 2009 3:54 PM
Subject: [Proto-Scripty] Re: Draggable Callbacks



Thanks.

On Aug 24, 8:41 am, "Alex McAuley" 
wrote:
> example:
>
> onEnd : function() {
> alert('i ended');
>
> }
>
> Alex Mcauleyhttp://www.thevacancymarket.com
>
> - Original Message -
> From: "Rob" 
> To: "Prototype & script.aculo.us" 
> 
> Sent: Sunday, August 23, 2009 7:29 AM
> Subject: [Proto-Scripty] Draggable Callbacks
>
> > 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
>
>



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: Draggable Callbacks

2009-08-24 Thread Rob

Thanks.

On Aug 24, 8:41 am, "Alex McAuley" 
wrote:
> example:
>
> onEnd : function() {
> alert('i ended');
>
> }
>
> Alex Mcauleyhttp://www.thevacancymarket.com
>
> - Original Message -
> From: "Rob" 
> To: "Prototype & script.aculo.us" 
> Sent: Sunday, August 23, 2009 7:29 AM
> Subject: [Proto-Scripty] Draggable Callbacks
>
> > 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
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: Draggable Callbacks

2009-08-24 Thread Alex McAuley

example:

onEnd : function() {
alert('i ended');
}

Alex Mcauley
http://www.thevacancymarket.com
- Original Message - 
From: "Rob" 
To: "Prototype & script.aculo.us" 
Sent: Sunday, August 23, 2009 7:29 AM
Subject: [Proto-Scripty] Draggable Callbacks


>
> 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
>
>
> >
> 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---