Solved

dojoConfig object

Posted on 2014-03-19
2
179 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Asp response.write to clients 6 34
ModalPopup  question 22 38
Rotate images for Web Page 11 28
how to customize the text in the legend in highcharts 3 35
Avoid defining the variables in the global scope; trying to define them in a local function scope. Because:   • Look-up is performed every time a variable is accessed.   • Variables are resolved backwards from most specific to least specific scope…
This article discusses how to implement server side field validation and display customized error messages to the client.
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…

733 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