Can someone tell me how to get html returned when I do an ajax call to an action, right now it's giving me some escaped content.
Using ZF version 1.9.2
Here is the ajaxLink:
[PHP]<?php
echo $this->ajaxLink(
"Login",
$this->baseUrl()."/ajaxy/test3",
array(
'update' => '#loginbox',
'noscript' => false,
'method' => 'GET',
'dataType' => 'html',
'complete' => 'showslow',
'beforeSend ' => 'fadeout',
)
);
?>
<div id="loginbox" class="span-6"></div>[/PHP]
Here is the action it calls:
[PHP]public function test3Action(){
$this->_helper->viewRenderer->setNoRender();
$dataToSend='<p>testing 123</p>';
$this->_helper->json->sendJson($dataToSend);
}[/PHP]
Here is what I get , it's escaped:
"
testing 123<\/b><\/p>"
thanks
Last edited by ericp; 09-25-2009 at 11:09 PM.