[jQuery] Re: How do you do Client/Server interaction? (CakePHP/JSON/jQuery)

2007-11-02 Thread Tane Piper
Just to let you all know, I've put up a tutorial explaining it a bit more here: http://digitalspaghetti.me.uk/2007/11/02/developing-a-persistent-javascript-variable-with-cakephp-12-jquery/ Please feel free to comment as it probably could be improved upon. On 02/11/2007, Tane Piper [EMAIL

[jQuery] Re: How do you do Client/Server interaction? (CakePHP/JSON/jQuery)

2007-11-02 Thread abba bryant
You can do all of this with requestHandler component ( to check if an action is 'requested' by another view or element, router::parseExtensions ( to manage automatic template switching for requests mapped with a .js file extension ); view::requestAction ( to actually request the json ) and the

[jQuery] Re: How do you do Client/Server interaction? (CakePHP/JSON/jQuery)

2007-11-01 Thread Tane Piper
Well, what would you know! Having written out what I wanted to get, and by simply applying a little brainpower, I came up with the solution. What I did was write a CakePHP component and helper. First off, here is the component: ?php class JsonComponent extends Component { var

[jQuery] Re: How do you do Client/Server interaction? (CakePHP/JSON/jQuery)

2007-11-01 Thread McFadly
Hey Tane - check out cake's JavascriptHelper::object() On Nov 1, 6:00 pm, Tane Piper [EMAIL PROTECTED] wrote: Well, what would you know! Having written out what I wanted to get, and by simply applying a little brainpower, I came up with the solution. What I did was write a CakePHP component