Problem When using XAJAX on CI - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Problem When using XAJAX on CI (/showthread.php?tid=14999) |
Problem When using XAJAX on CI - El Forum - 01-23-2009 [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 my view file Code: <?php echo $this->xajax->getJavascript(base_url().'js/') ?> 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 Problem When using XAJAX on CI - El Forum - 01-26-2009 [eluser]OliverHR[/eluser] Where are you putting the libraries? Try removing slash in your view. Code: $this->xajax->getJavascript(base_url().'js') I use xajax in this way: Controller Code: $data['xajax_js'] = $this->xajax->getJavascript(base_url() . 'js'); In view just: Code: <?= $xajax_js ?> |