Problem with strings return from xajax.getFormValues() - 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 with strings return from xajax.getFormValues() (/showthread.php?tid=15609) |
Problem with strings return from xajax.getFormValues() - El Forum - 02-10-2009 [eluser]Berserk[/eluser] Hi there, i'm using XAJAX for my project (xajax is lastest version and CI 1.6) . But currently i get <![CDATA[ before each string return by xajax.getFormValues(). What's this problem ? my xajax function at Controller: Code: function updateUserStatus($form_data) and View : Code: <div class="block-border"> Returned String is : Code: <?xml version="1.0" encoding="utf-8" ?><xjx><cmd cmd="as" id="statusDisplay" prop="innerHTML"><![CDATA Any suggest ? Thanks. Problem with strings return from xajax.getFormValues() - El Forum - 08-22-2009 [eluser]Unknown[/eluser] I know the solution, but I'm not sure if this solution could cause other problems. Here the solution: Look at xajax_core.js file. Find script like this : Code: data='<![CDATA['+data+']]>';return data;} Delete or block script Code: data='<![CDATA['+data+']]>'; Code: //data='<![CDATA['+data+']]>'; This solution work to me.. Nb: I'm not sure if this solution could cause other problems. Sorry about my English is less good. Problem with strings return from xajax.getFormValues() - El Forum - 08-24-2009 [eluser]Berserk[/eluser] thanks KL, currently i decided jQuery for my project, it's easier and faster than xajax |