In order to provide a windowname transport accessible resources/web services, a server
should check for the presence of a parameter window.name=true and if a request includes
such a parameter, it should respond to the request with an HTML
document that sets it's window.name to the string that is to be
delivered to the client. For example, if a client makes a window.name request like:
http://othersite.com/greeting?windowname=true
And server wants to respond to the client with "Hello", it should return an html page:
<html><script type="text/javascript">
window.name="Hello";
</script></html>
One can provide XML or JSON data by simply quoting the data as a string, and parsing the data
on the client.
If you use the authorization window.name protocol, the requester should include an
authElement element in the args, and a request will be created like:
http://othersite.com/greeting?windowname=auth
And the server can respond like this:
<html><script type="text/javascript">
var loc = window.name;
authorizationButton.onclick = function(){
window.name="Hello";
location = loc;
};
</script></html>
When using windowName from a XD Dojo build, make sure to set the
dojo.dojoBlankHtmlUrl property to a local URL.