我在一个小时之前就已经工作了,但必须改变一些东西。 我应该如何使用ZendX调用ajaxLink,以便响应html get中的任何javascript被执行?我试过processData
,因为我认为我使用过,但现在不起作用。使用Zend框架时返回的运行javascript代码ZendX ajaxLink函数
<?php echo $this->ajaxLink('Click me and I will run the returned javascript code',
$this->url(array('controller' => 'foo', 'action' => 'bar')),
array('id' => 'myid'),
'processData' => true,
'method' => 'post',
'async' => false
),
array('a_posted_id' => $the_posted_id));?>
没有人知道如何运行返回的JavaScript代码? :) – inquam 2010-12-06 14:52:41