Quantcast

Calling functions between dijits

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Calling functions between dijits

Andrew Davis
Hello,

I'm trying to call a function from inside one digit to another digit.

I've been able to do this before like so.. ('extras') is a folder at the root of my project.

<script>   
    var dojoConfig = {
        async: true,
        packages: [{          
            name: "extras", //if you see this in the solution explorer (VisualStudio) it is the
                //folder named 'geocoders'
            //this regex type expression takes you directly to the location 'relative path'
            location: location.pathname.replace(/\/[^/]*$/, '') + '/extras'
        }]
    };
</script>

However, when I try to do this inside a different project where the folder containing the .js file I want to work with is down several levels..
(project), 'js/gis/dijit'  I am unable to get the reference.


Shouldn't the variable I have above be able to be redirected to the 'dijit' folder I have in the second project?


Andy..

--
Dojo Toolkit: http://dojotoolkit.org/
Tutorials: http://dojotoolkit.org/documentation/

[hidden email]
To unsubscribe, visit: http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
Loading...