[Dojo-interest] Cross Domain Resource loading problem, I try to explain the problem better

Peter Svensson psvensson at gmail.com
Sat Apr 26 09:50:13 UTC 2008


Giuseppe, I'm sorry. My magic is only good for 0.9 and up :/ :)
Could you not copy everything to both places, just so you can get things
going, if you're in a hurry, and then migrate in an orderly fashion to 1.1?

Maybe someone with enough mana can explain why this thing fail?

Cheers,
PS

On Sat, Apr 26, 2008 at 11:22 AM, Giuseppe Cassata <gcassata at avelco.com>
wrote:

>
> I useDojo xdomain 0.4.3 I've declared it in my page
>
> <script type="text/javascript"
>  var djConfig = {
>  isDebug: false,
>  useXDomain: true,
>  xdWaitSeconds: 10,
>  parseWidgets: true
>  };
>  </script
>
>  <script type="text/javascript" src="
> http://192.168.2.49:8080/WidgetService/Jscript/dojo/dojo.js"</script<!--<script
> type="text/javascript"
> src="/DynConsultori/Jscript/firebug/firebug.js"</script--
>  <!--IE temporary workaround--
>
>  <script type="text/javascript"
>  dojo.registerModulePath("dojo", "
> http://192.168.2.49:8080/WidgetService/Jscript/dojo/src");
>  dojo.registerModulePath("avelco", "
> http://192.168.2.49:8080/WidgetService/Jscript/avelco");
>
>  dojo.require...... etc
>
> </script
>
> The problems is with the custom widget
>
>
>  dojo .provide("avelco.widget.Avdialog");
>  dojo .require("avelco.widget.Dialog2");
>
>
>  dojo .widget.defineWidget(
>  "avelco.widget.Avdialog",
>  dojo .widget.HtmlWidget,
>
>  {
>
>
>  // definitions
>
>  templatePath :
> dojo.uri.moduleUri("avelco","widget/templates/Avdialog.html"),
>
>  templateCssPath : dojo.uri.moduleUri("avelco",
> "widget/templates/Avdialog.css"),
>
>  imagesPath : dojo.uri.moduleUri("avelco", "widget/templates/images/"),
>
>
> Trying to load templateCssPath i get the error:
>
> Debugging dojo I saw that it expects to load
> http://192.168.2.49:8080/WidgetService/Jscript/avelco/AvDialog.css, and so
> XHR issues the error
>
>  Permission denied to call method XMLHttpRequest.open,
>
> So I'm thinking to leave css, and images on the local project.. but it's
> required to have the whole dojo distrinution included in the local project
> or simply do I need to have resource folders such as Templates and images?
>
> Please Help me
>
>
> _______________________________________________
> FAQ: http://dojotoolkit.org/support/faq
> Book: http://dojotoolkit.org/docs/book
> Forums: http://dojotoolkit.org/forum
> Dojo-interest at dojotoolkit.org<http://dojotoolkit.org/forumDojo-interest@dojotoolkit.org>
> http://turtle.dojotoolkit.org/mailman/listinfo/dojo-interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://turtle.dojotoolkit.org/pipermail/dojo-interest/attachments/20080426/5c04edc0/attachment.html 


More information about the Dojo-interest mailing list