Simple question about Json - Joomla! Forum - community, help and support


there component uses following javascript code:

code: select all

var $jq = jquery.noconflict();
$jq.ajax(
  {
   url: index.php?option=com_somecom&task=dotask,
        type: 'post',
   datatype: 'json',
   data: $jq('#test-form').serialize(),
   success: function(response){
            $jq('#status').html(response.message);
   }
  });

and set response component.
in more simple words:
how generate json output?

i solved it. simple question.





Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support