I
ircmaxell
Here's my situation. I use "versioned" xml files to communicate
between my server and my clients. When I say versioned, I increment a
"version" value within the xml document upon each change (so if the
versions are the same, the file is the same). Now, to reduce
bandwidth and server load, I want the client to download this version
first, test it, and then download the xml file ONLY if the version
changes. I put the version into a simple flat file ("3324" is all
that's in it). Then, using XMLHttpRequest.responseText, I check that
number against the one in memory. It works great in IE, and works in
FF, but in FF it throws a syntax error ("3324^"). Is there any way I
can prevent this error, and still use this model?
between my server and my clients. When I say versioned, I increment a
"version" value within the xml document upon each change (so if the
versions are the same, the file is the same). Now, to reduce
bandwidth and server load, I want the client to download this version
first, test it, and then download the xml file ONLY if the version
changes. I put the version into a simple flat file ("3324" is all
that's in it). Then, using XMLHttpRequest.responseText, I check that
number against the one in memory. It works great in IE, and works in
FF, but in FF it throws a syntax error ("3324^"). Is there any way I
can prevent this error, and still use this model?