I managed to connect to a JSON server using ajax and the sapphire Restful server api, but I am not able to display the dynamic data using a template file as my module code is not able to find the template file.Upon a ?debug_request=1. the code stops execution here
Latest request params: array (
'Action' => 'display',
'ID' => '8298574',
'OtherID' => NULL,
)
and if I use the $this->renderWith('displaypage'); or return $this->renderWith(array('displaypage','Page')); on my dataobject it goes for an infinite loop.
template code in file is
<% if display %>
<h3>$objectType<h3>
<% end_if %>
Is there anyway that my controller can default to handle request as the above and display the template both on AJAX and without.....?
Any thoughts will be helpful
Cheers.
Rubin Thomas
(SS Newbie)