When using XAJAX I have a call to a function that trims a string. this is a simple function and works just as expected.
Now I want to make this function available to the whole system so I have added it to a helper class as a static method. ever since I moved this function to this class I get a bad response, something like this.
Error: the XML response that was returned from the server is invalid.
Received:
some code here...
You have whitespace in your response.
This message most of the times comes up when there is a fatal error, but nothing shows up in the error log... don't really know what to do from here, any suggestions?
I have included the file, so I know is not an include problem, the static method gets called, but the response that comes back from XAJAX is bad.
Thank you