Javascript document.domain
<p>I'm trying to access a work server for use with an application called Spotfire.  My colleague who passed me this is now off for a couple of weeks, and I have an issue with what he advised me.</p>

<p>Effectively when I run my web app via localhost, I get an error saying that I cannot access my work server.  My colleague had said that I need to set document.domain to our work domain, but when I do this as such:</p>

<pre><code>document.domain = "workdomain.net";
</code></pre>

<p>I get an error saying that it is an invalid argument.  Any idea how to get around this?</p>

<p>Thanks,</p>

<p>Darren.</p>
