Results 1 to 1 of 1

Thread: ZendX_Jquery data return format

  1. #1
    ericp is offline Junior Member
    Join Date
    Mar 2009
    Posts
    2

    Default ZendX_Jquery data return format

    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.

Similar Threads

  1. Getting the date format
    By mosh in forum Internationalization (i18n) & Localization (l10n)
    Replies: 10
    Last Post: 10-29-2010, 08:29 AM
  2. ZendX_jQuery/JSON issue.
    By fumanchu182 in forum General Q&A on Zend Framework
    Replies: 0
    Last Post: 07-16-2010, 01:07 PM
  3. [ASK] about zendx_jquery
    By zipcoi in forum Model-View-Controller (MVC)
    Replies: 0
    Last Post: 02-07-2010, 02:37 PM
  4. problem with zendx_jquery setJQueryParam
    By nickyflava in forum Extensions
    Replies: 1
    Last Post: 05-25-2009, 01:16 PM
  5. Replies: 4
    Last Post: 05-06-2009, 01:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •