This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
You don't. That style of script is specifically geared towards making things self-contained and unshareable. You'll need to do something to make the functions you want to use externally visible, or change the way that they're declared in the first place.
Thanks for your reply.I don't have the svn snapshot for Dojo, but I basically wanted to do something like: dojo.require( "dijit.widget.*"); within NMS namespace; and then allow it to be used throughout my different JS modules ... like NMS.require( " " );, my question is more geared towards providing me with conceptual understanding or snippet of how that can be done ...
Joined: Feb 02, 2009
OK, Just for follow up, I got around the problem by doing something like:
I know there is a better way of doing it (I am thinking that we provide a file path name in a.b.c form and then traverse through folders to get the URI and then do an eval on the js file to get hold of object hierarchy ... I'll give that a try too, but I thought this was easy enough to do.