[Dojo-interest] Dojo XDomain loading Resources problem - errata corrige

Peter Svensson psvensson at gmail.com
Thu Apr 24 18:12:22 UTC 2008


Wait. You should be using dojo.xd.js if you're using the xdomain build.
Could this be it?
Also, I find it more easy to not have any extra require'es in the html page,
and instead have them in the beginning of my custom widgets. That way it
gets easier to read the page.

Cheers,
PS

On Thu, Apr 24, 2008 at 7:53 PM, Giuseppe <gcassata at avelco.com> wrote:

>  Hi
>
> This is the REAL situation
>
> on my HTML 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("dojo.widget.Dialog");
> dojo.require("dojo.widget.ComboBox");
> dojo.require("dojo.widget.LayoutContainer");
> dojo.require("dojo.widget.ContentPane");
> dojo.require("dojo.widget.TabContainer");
> dojo.require("dojo.json");
> dojo.require("dojo.undo.browser");
> dojo.require("avelco.widget.Avsteps");
> dojo.require("avelco.widget.Selector");
> dojo.require("avelco.widget.Listdiv");
> dojo.require("avelco.widget.Avdialog");
> dojo.require("avelco.widget.Footerbar");
> dojo.require("avelco.widget.Infoarea");
> dojo.require("avelco.widget.Actionpopup");
> dojo.require("avelco.widget.Avfiltrosingolo");
> dojo.require("avelco.widget.Avselectoranagrafiche");
> dojo.require("avelco.widget.Multisearch");
> dojo.require("avelco.widget.Selectortree");
> dojo.require("avelco.widget.Levelcontrol");
> dojo.require("avelco.widget.Treeview");
> dojo.require("avelco.widget.Htmlcontrol");
> //dojo.hostenv.writeIncludes(); //makes debugging in Venkman or FireBug possible
> </script>
>
>
>
>
>
> The problems is withe the custom widget
>
>
>
>
>
> dojo
> .provide("avelco.widget.Avdialog");
>
> dojo
> .require("avelco.widget.Dialog2");
>
>
>
>
>
> dojo
> .widget.defineWidget(
>
> "avelco.widget.Avdialog",
>
> dojo
> .widget.HtmlWidget,
>
> {
>
>
>
> widgetsInTemplate
> : true,
>
> // interface part
>
> showhandler
> : '',
>
> template
> : '',
>
> savefunction
> : '',
>
> cancelfunction
> : '',
>
> saveimage
> :'',
>
> cancelimage
> :'',
>
> ajaxhandler
> : '',
>
> dlgwidth
> : '',
>
> dlgheight
> : '',
>
> jsonstring
> :'',
>
> title
> :'',
>
> data
> :null,
>
> saveOnExit
> : '',
>
> // per specificare funzioni del dialogo da caricare dinamicamente
>
> require
> :'',
>
> footer
> :'',
>
> //onTemplateLoadFunction:'',
>
> reloadAtNewShow
> : true,
>
> alreadyShowed
> : false,
>
> undoClose
> :false,
>
> isValid
> :'',
>
> levelControlAlreadyLoaded
> :false,
>
> showLevelControl
> :true,
>
>
>
>
>
> // 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
>
>
>
> Permission denied to call method XMLHttpRequest.open
>
>
>
> This worked only with localhost in place of the IP address..... obviously with browser on the same machine.....
>
>
> _______________________________________________
> 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/20080424/aecf67f8/attachment.html 


More information about the Dojo-interest mailing list