Welcome Guest, Not a member yet? Register   Sign In
Problem When using XAJAX on CI
#1

[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:
&lt;?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:
&lt;?php echo $this->xajax->getJavascript(base_url().'js/') ?&gt;
<div name="div_car_color" id="div_car_color"></div>
&lt;input type="button"&gt;

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


Messages In This Thread
Problem When using XAJAX on CI - by El Forum - 01-23-2009, 08:15 AM
Problem When using XAJAX on CI - by El Forum - 01-26-2009, 10:04 PM



Theme © iAndrew 2016 - Forum software by © MyBB