javascript - Loading jQuery with Dojo AMD loader Issue -
i trying load jquery using dojo amd. working fine when use jquery cdn path below code.
<script type="text/javascript" src="widgetdownloadtest/lib/dojo/dojo/dojo.js" data-dojo-config="async: true, packages: [ { name: 'jquery', location: 'http://ajax.googleapis.com/ajax/libs/jquery/1.7.1', main: 'jquery' } ]"> </script>
however if change jquery path local machine (absolute path) . jquery libaries(jquery-1.10.2.js,jquery-ui-1.10.4.custom.js,jquery-ui-1.10.4.custom.min.js) placed in folders 'jquery/1.7.1'
<script type="text/javascript" src="widgetdownloadtest/lib/dojo/dojo/dojo.js" data-dojo-config="async: true, packages: [ { name: 'jquery', location: 'jquery/1.7.1', main: 'jquery' } ]"> </script>
please me on this. in advance.
pradeep
scripts mentioned in 'location' should relative 'dojo.js' folder (in case: widgetdownloadtest/lib/dojo/dojo/dojo.js).
so if example jquery libraries exist in 'widgetdownloadtest/lib/jquery/1.7.1' 'location' parameter should set to:
location:'../../jquery/1.7.1'
Comments
Post a Comment