Hello Xavier.
This is already possible, you can plug the option 'dataType' => 'javascript'
into the ajaxLink helper. For example:
<?= $this->ajaxLink("test", "hello.html", array('dataType' => 'script'),
array()); ?>
This would switch to interpreting the response to execute included javascript.
Important is to use 'script', not javascript. As it proxies directly to the
dataType options that can be given to jQuery $.get and $.post.
On Wednesday 19 November 2008 09:15:02 Xavier Vidal Piera wrote:
> Hi
>
> I think it could be useful to have an extra "datatype" option in AjaxLink
> View Helper: the "javascript" option to eval the server's response in the
> client.
--
Benjamin Eberlei
http://www.beberlei.de