Thursday, February 26, 2009

Re: Return a script and execute it

I have not done it myself, but as I understand it returning javascript
to be executed is just "native" to ajax. Have a look at the javascript
library you are using to see if anything needs to be configured for it
to work...(prototype has a property called evalScripts) but it should
more or less "just work", as they say. It is certainly not some Cake
magic at work.

On Feb 26, 12:37 pm, Andraž <andraz.prin...@gmail.com> wrote:
> Here is written that we can return a script and execute it.
>
> "This was just one way of doing it, we could return JSON, XML or a
> script that'll get executed"
>
> http://www.devmoz.com/blog/2007/04/04/cakephp-update-a-select-box-usi...
>
> Where can I find some example, how to return a script and execute it.
>
> Regards Andraž
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: