Ampersands in JavaScript

Hi,

I'm developing a web page, where I compose a URL in JavaScript and then
send it to the server using an XmlHttpObject (like you would when using
AJAX). This means that the URL is not processed by an HTML parser. If I
use the & sign to add parameters to this URL, the page does not
validate. If I use & the URL is not correct.

The page can be found under

http://dev.mediamall.tv/mm-peter--test/AmpProblem.htm

With kind regards,

Peter Laudy

Received on Wednesday, 18 July 2007 19:06:10 UTC