Autoloading XML files
Posted: Thu Dec 03, 2020 12:59 pm
PowerPac v15 allows for autoloading XML files based on page names used in your application.
To use this feature:
Of course, you can use the PowerPac function XMLHttpRequest() to load your XML files at any time or in connection with any event. You can also use the function within an XML file to chain load mutiple XML files at the same time.
Have FUN!
To use this feature:
- Enable Auto-load XML for each page in the Export Options ... of the PowerPac Menu.
Then, for each page of your application that you want load an XML configuration file create an XML file which matches the page name that it is designed to configure. (e.g.: For a page named "Question_1" create the xml file "Question_1.xml") For best results, your pages should be named without spaces in their names.
- NOTE: After each page XML has loaded, a user event is sent to the page for notification purposes. The [value] parameter of the user even will equal the XML document object. All page XML files are cached for rapid reloading during page navigation.
Of course, you can use the PowerPac function XMLHttpRequest() to load your XML files at any time or in connection with any event. You can also use the function within an XML file to chain load mutiple XML files at the same time.
Have FUN!