jQuery: The Write Less, Do More JavaScript Library

Re: Ajax .get won't execute the callback function is a & is in the returning XML

by James-279 :: Rate this Message:

Reply to Author | View in Thread


I think it is reserved in XML. Try to use PHP to convert all & to
& on server-side.
Then you can decode it back on the client-side, if necessary.
Try that and see if it works.

On Jul 2, 10:07 am, Kendall <kendall.cro...@...> wrote:
> I've found a situation where the callback function won't run if there
> is a & in the returned XML. I am calling PHP on the server side and
> passing the input text. I can see through FireBug that the result set
> is created, but the callback never runs. The callback will run if the
> & is not present in the XML.
>
> Does the & mean something special to XML or jQuery? Is there a way to
> escape the & character?

 « Return to Thread: Ajax .get won't execute the callback function is a & is in the returning XML