Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

DOJO custom modules development with xdomain

I have this situation:

  • application server running on example.com - this is where html pages are loaded from m

  • server for serving static files on static.example.com - this is from where are static files loaded from (css, graphics, scripts)

I want to run DOJO with my custom modules on my site. The problem is that I need xdomain build for everything i want to use (dojo, dijit, dojox, custom modules). It would be alright, to create xdomain build for production enviorment, but I need to have this two domain split also for development.

Ok, I can prebuild dojo,dijit,dojox with xdomain loader. But rebuilding custom modules all the time for development is not probably the right way.

So, what do you recommend me? Or, what exactly does the builder do, for achieving module to load xdomain? Can i create module to work xdomain directly?

Thank you

like image 733
JoshuaBoshi Avatar asked Oct 27 '11 15:10

JoshuaBoshi


1 Answers

Try Dojo 1.7 (on the download site, not yet announced) The new AMD-based loader enables cross domain code without the special XD build tool, which used to generate a transform a bit like AMD.

like image 187
peller Avatar answered Oct 19 '22 22:10

peller