include the Chart.min.js library on the page
Use WebSDK to include any external JavaScript library.
If any tutorial to use WebSdk
Paul has tutorial for that. Also check the demo app under \Extras\WebSDK\Examples
but how does one include a library for the whole page, so it can be accessed from Xojo controls, etc…
You still need to implement the API yourself. Look at the examples for the Html editor and the jquery calendar control. They are good examples of how this would be accomplished.
Thanks for the reply Greg but I think I was not asking correctly, or something…
Anyway, the answer to my question (for others’ reference) is:
- script and css tags can be added in the app.HTMLheader property and then referenced elsewhere by javascript in your web application.
The examples provided with the IDE and the web SDK itself all refer to custom web controls which control the scope of the available css and javascript frameworks to the custom control itself.
You’re asking correctly. The correct way to accomplish this is to create a control and place it on the first page that the user hits so it gets loaded. It doesn’t even need to do anything, just to load the library so the app can access it.