Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (absolute)
Viewing all articles
Browse latest Browse all 6

Include js file using absolute path

$
0
0

Pretty basic question, but it's been giving me issues for a while - how do you include a javascript file using an absolute path? The following doesn't seem to work:

Ti.include("/folder/file.js");
If I use a relative path from the current file, it's fine, but that will get messy pretty quick. Is there some other way to reference the root directory?

Viewing all articles
Browse latest Browse all 6

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>