Solved

dojoConfig object

Posted on 2014-03-19
2
180 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

Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

Question has a verified solution.

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

I've been trying to accomplish this for a while and it just struck me yesterday how to accomplish this task. I have done searches all over the internet looking for ways to email pages from my applications and finally I have done it!!! Every single s…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
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…

695 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