[Dojo-interest] Dojo from static server
James Burke
jburke at dojotoolkit.org
Wed Feb 14 21:30:08 MST 2007
On 2/14/07, cary ho <caryho at hotmail.com> wrote:
> hi,
>
> I have a jsp page that was using dojo fine.
>
> <script type="text/javascript" src="/js/dojo/dojo.js"></script>
> <script type="text/javascript">
> dojo.require("dojo.widget.*");
> </script>
>
> it worked fine until all the stuff went to a static server.
>
> <script type="text/javascript"
> src="$http://localhost:81/static/js/dojo/dojo.js"></script>
> <script type="text/javascript">
> dojo.require("dojo.widget.*");
> </script>
>
> Now i get an error that says:
>
> symbol 'dojo.widget' is not defined after loading '__package__.js'
>
> Anyone have any clue whats going on? The dojo.js script is in the webpage
> when I view the source in a browser.
Unless your page is also being served from localhost:81, this is not
allowed by the browser security module, since in normal Dojo builds,
modules like dojo.widget are loaded using XMLHttpRequests and those
can only be made to the same domain and port as the page.
James
More information about the Dojo-interest
mailing list