Hector Virgen wrote:
>
> a) If your ajax response and the regular view script are identical, you
> can
> render the regular view script from the ajax view script:
> myview.ajax.phtml:
>
> <?= $this->render('mycontroller/myview.phtml') ?>
>
> b) Yes, if you post data in your ajax request, they will be available in
> the
> controller.
>
>
>
> On Mon, Oct 20, 2008 at 11:12 AM, spaceage <davidlh@mac.com> wrote:
>
>>
>> I'm new to this helper and have a couple questions:
>>
>> a) I want to return an html snippet as the ajax response--the html is
>> the
>> same as what gets generated by my view script within my "normal" layout.
>> Do
>> I have to have a duplicate a "myview.ajax.phtml" view script alongside
>> the
>> "myview.phtml" view script even if they both return the same html data?
>> Seems to go against the grain in terms of "drying up" code...
>>
>> b) With an ajax request, are POST parameters maintained/conveyed in the
>> request object?
>>
>> Thanks!
>> --
>> View this message in context:
>> http://www.nabble.com/AjaxContext-and-view-scripts-tp20075576p20075576.html
>> Sent from the Zend MVC mailing list archive at Nabble.com.
>>
>>
>
>
> --
> -Hector
>
>
--
View this message in context: http://www.nabble.com/AjaxContext-and-view-scripts-tp20075576p20075875.html
Sent from the Zend MVC mailing list archive at Nabble.com.
没有评论:
发表评论