Solved

dojoConfig object

Posted on 2014-03-19
2
178 Views
Last Modified: 2014-03-20
I am trying to learn dojo...

I have this code in  a.html file but i dont understand it.... can you please help
<script>
  var dojoConfig = {
        paths: {
          modules: location.pathname.replace(/\/[^/]+$/, "") + "/javascript"
        }
      };
</script>

thanks so much
0
Comment
Question by:ts84zs
2 Comments
 
LVL 5

Accepted Solution

by:
jayakrishnabh earned 500 total points
ID: 39941702
dojoConfig is an object that has a field paths. paths is also an object which has a field modules. the value of modules field would be the evaluation of location.pathname.replace(/\/[^/]+$/, "") + "/javascript".

modules can be accessed as dojoConfig.paths.modules

For Example : Student object with Name,Address in javascript can be created as follows
var student = { Name: 'xxx',
                        Address : { DoorNo: 'xxxx', PinCode: 'xxxxx' }
                       }
0
 

Author Comment

by:ts84zs
ID: 39942383
Thanks so much its v  clear now ....
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today I would like to talk about localizing (Internationalization) JavaScript applications. Introduction When creating an application that is going to be used by many people around the globe, it is important to remember that not everyone speak…
In this article, we'll look how to sort an Array in JavaScript, including the more advanced techniques of sorting a collection of records either ascending or descending on two or more fields. Basic Sorting of Arrays First, let's look at the …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

837 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question