[eluser]Unknown[/eluser]
i have problem on using xajax on ci, i am not sure where is the problem
xajax debug output
Fri Jan 23 2009 19:41:17 GMT+0530 (India Standard Time)
ERROR: ResponseReceived: Invalid response XML: The response contains an unexpected tag or text: {data}.
Fri Jan 23 2009 19:41:17 GMT+0530 (India Standard Time)
RECEIVED [status: 200, size: 115 bytes, time: 1151ms]:
<?xml version="1.0" encoding="utf-8" ?>
<xjx>
<cmd n="as" t="div_car_color" p="innerHTML">test sucess</cmd>
</xjx>
Fri Jan 23 2009 19:41:16 GMT+0530 (India Standard Time)
SENT [30 bytes]
here is my code
Code:
<?php
class xtest extends Controller
{
function xtest()
{
parent::Controller();
}
function index()
{
// XAJAX
$this->_load_xajax();
$this->load->view("test");
}
function _load_xajax()
{
$this->load->library('xajax_lib');
$this->xajax->configure('debug', true);
$this->xajax->registerFunction(array("test", &$this, "test"));
$this->xajax->processRequest();
}
function test()
{
$objResponse = new xajaxResponse();
$objResponse->assign('div_car_color', 'innerHTML',"test sucess");
return $objResponse;
}
}
my view file
Code:
<?php echo $this->xajax->getJavascript(base_url().'js/') ?>
<div name="div_car_color" id="div_car_color"></div>
<input type="button">
this is my test
on button click i call the function xajax_test , on code it is hidden
any one can give me the solution
One more Important point this is
working well on my localhost , when i upload into
server and check then i
got the error. i use same configuration on server