[Moo] Re: MooGooMaps = MooTools + GoogleMaps javascript API

2011-01-21 Thread Ciul
Hi MooTools pals. I'm working on a XMLMap class, basically it implements my XML 2 Js Object converter script and then creates a google maps accordingly the XML file nodes (which syntax I've defined accordingly to MooGooMaps classes arguments/options). By example, right now I've just achieved it c

[Moo] Re: A Splatter class

2011-01-21 Thread HJ
I've added a splatter made of "sticks" to the example (click on "Sticks splatter" to select it), it uses -[webkit/moz]-transform to make the sticks follow the direction of the splatter :) On Jan 20, 11:00 pm, Oskar Krawczyk wrote: > Ah, dragging... Yes, that certainly helped :-) > > Cool stuff! >

[Moo] Re: JSONP Oncomplete is not working for me :(

2011-01-21 Thread hartum
This solution is even Better than set the callbackKey, becouse it execute the default "onSuccess" event. It will be good to explain this in mootools documentation wich explain a lot about client side, but nothing about server side. Thanks again for explanaitions guys, you make the community stron

Re: [Moo] Re: JSONP Oncomplete is not working for me :(

2011-01-21 Thread Tim Wienk
Indeed. I recommend just leaving callbackKey to its default (callback), and using something like: '0', 'disponible' => 0 ); $json_string = json_encode($something); echo $_GET['callback'], '(', $json_string, ')'; ?>

Re: [Moo] Re: JSONP Oncomplete is not working for me :(

2011-01-21 Thread Sean McArthur
Actually, the callbackKey option is so you can specify what the GET variable the callback should be sent as. callbackKey: 'foo' would set a request of myurl.com/?foo=Request.JSONP.request_map.request_0, or something similar. So in your PHP, you need to check the same $_GET variable. Leaving cal

[Moo] Re: JSONP Oncomplete is not working for me :(

2011-01-21 Thread hartum
Thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you very much. Finally I understand It. On 21 ene, 09:49, Andrea Dessì wrote: > Hi hartum, > > foo is not defined because is not "global" > > in the jsfiddle I've changed the "wrapping method" > look: > >

Re: [Moo] Re: JSONP Oncomplete is not working for me :(

2011-01-21 Thread Andrea Dessì
Hi hartum, foo is not defined because is not "global" in the jsfiddle I've changed the "wrapping method" look: http://jsfiddle.net/5uC5M/7/ now with no wrap is working :) -- Andrea On Fri, Jan 21, 2011 at 09:37, hartum wrote: > first of all, thank you for your answers > > second, in thi

[Moo] Re: JSONP Oncomplete is not working for me :(

2011-01-21 Thread hartum
first of all, thank you for your answers second, in this moment I feel like stupid, becouse still didn't work I set my callbackKey as foo: callbackKey: 'foo' http://jsfiddle.net/5uC5M/6/ and my response as: And I get this error: "foo is not defined" What I am doing wrong? Thanks you again.