I'm looking for an example or official documentation showing how to include a t开发者_StackOverflow社区hird party library as part of a Tropo hosted Javascript application for handling calls.
You really won't find one. However, it appears that Tropo is using the JVM's scripting engine, which (for JavaScript) is based on Rhino. I'd expect you can just upload your third party library and then use Rhino's load function to import it. You'll need to make sure your third party library doesn't depend on any global variables that don't exist (such as window
,document
, or pretty much any of the browser-specific objects that are out there) but that should work for you.
Tropo doesn't store your applications on the local filesystem, so any attempt to load a local file will fail. If you can import your file over http, that would work. Just reference the file using the same path you see as your application's URL in Tropo (the http://hosting.tropo.com... url).
精彩评论