In this thread I sought help with a specific javascript external reference problem. I’m thinking it might be more useful to kick the conversation into the larger context. I don’t need that particular javascript, I just want one, from somewhere, or else a tutorial in how to write my own from the ground up.
IMPORTANT BACKGROUND INFO: 99.9999% of the time when people want to deploy javascript, the eventual location of the code is going to be one or more plain text files which get served up by a web server somewhere as web pages: .html files, occasionally .php files, etc. That is not the case here. No actual web browser or web server may ever be involved here, I have a completely different environment that can execute HTML and Javascript and other code that would normally be on a web page: an object called a web viewer in FileMaker Pro. One important aspect of this deployment is that dependencies (on other source files) is a big problem; I need a solution that I can FLATTEN so that it runs all from a single file (or in my case the equivalent of a single file), or else can reference any external sources NOT from a file-system file path (which will not be available to me as an option) but instead from an internet URL file path (e.g., http://someserver/folder/file.ext). The latter, I can do.
I want to be able to make various charts and whatnot using Javascript in a web viewer as an alternative to other graphing techniques that are at my disposal within FileMaker.
I’m a Javascript newbie and am making my way through Javascript: The Missing Manual and Javascript In Easy Steps but in both books the tutorials and examples from mid-book onwards head off in a direction that isn’t of use to me (I’m not trying to design a web site, I’ll be using JavaScript to design little doodads of various sorts embedded on a “page” that already exists and which is outside of the doman of the javascript and which is not written in HTML at all).
I don’t mind being told “You’re asking for advanced techniques you are not ready for”, but I could use a “start with this, then master this, then you’ll be ready for this which will teach you how to make Javascript do dynamic charting” sort of pointer. On the other hand, I could learn a lot from (comparatively simple) code that I could examine and cannibalize. That’s what I was hoping for with the JS-Charts, but it doesn’t look like I can use that due to being unable to unbolt the dependency on an external file.