JavaScript™ properties

If JavaScript™ is specified as the response format, the reply data is formatted to be parsed as a JavaScript™ include file.

A typical JavaScript™ properties response has this general structure:


propertyValue can be empty. White space is optional at the beginning and end of each line and before and after the = separator. All values are enclosed by single quotes. Single quotes in strings are escaped with two consecutive single quotes.

To parse a JavaScript™ properties response, any object or objects referenced in the response must be created before the properties file is loaded. Following is an example for using req=props to obtain the response image size in JavaScript™:

<script> image = new Object; </script>
<script> alert("Size: " + image.width + " , " +
image.height); </script>

On this page