logo       

Re: Yan: [symfony-users] Re: jquery - json problem: msg#00813

symfony-users

Subject: Re: Yan: [symfony-users] Re: jquery - json problem


Hello,
I found this in description of sfJqueryReloadedPlugin functions

* To access the server response, use 'request.responseText', to
* find out the HTTP status, use 'request.status'.
*
* If you are using JSON, you can access it via the 'data' parameter

But I think there is a bug in sfJqueryReloadedPlugin because 'data'
parameter works only for "success" callback.

I tried something like that and it semms to be working:

<?php echo jq_submit_to_remote('plus', '+', array(
'url' => 'reklamy/add?a=plus',
'dataType' => 'json',
'success' => "updateJSON(data)"
), array('class' => 'link')) ?>

Wojtek

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to symfony-users@xxxxxxxxxxxxxxxx
To unsubscribe from this group, send email to
symfony-users+unsubscribe@xxxxxxxxxxxxxxxx
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | Mail Home | sitemap | FAQ | advertise