Welcome Guest, Not a member yet? Register   Sign In
CI returns invisible symbol string to jquery ajax
#4

[eluser]Nick_MyShuitings[/eluser]
Give this a try: Try returning the information json_encoded. Not only does it allow your javascript to be a bit more flexible should you change things in the future, but it might take care of this issue.

It'll get you in the better habit or returning a data set instead of plain text.

For example, in this case you'd return something like this:

Code:
$response = array('name'=>'edgars'); return json_encode($response);

Might take care of that odd whitespace.

If not as a last resort, there are whitespace trim() type functions in javascript that should help.


Messages In This Thread
CI returns invisible symbol string to jquery ajax - by El Forum - 01-05-2011, 03:24 PM
CI returns invisible symbol string to jquery ajax - by El Forum - 01-05-2011, 09:58 PM
CI returns invisible symbol string to jquery ajax - by El Forum - 01-06-2011, 02:23 AM
CI returns invisible symbol string to jquery ajax - by El Forum - 01-06-2011, 09:09 AM
CI returns invisible symbol string to jquery ajax - by El Forum - 01-07-2011, 09:58 AM
CI returns invisible symbol string to jquery ajax - by El Forum - 01-07-2011, 10:01 AM
CI returns invisible symbol string to jquery ajax - by El Forum - 01-07-2011, 01:58 PM



Theme © iAndrew 2016 - Forum software by © MyBB