Setting up XML <make> tag for validateField()

Using XMLHttpRequest() to configure entire ToolBook pages.

Setting up XML <make> tag for validateField()

Postby Clifton » Thu Feb 02, 2017 10:59 pm

As of v13.100.x, the PowerPac supports top level XML <make> elements
for use with PowerPac's validateField() content-monitoring function.


Consider this interactive example:

NOTE: Because the field in the upper left corner is a top-level element created from an XML <make> tag, it will stay in place even when you navigating to other pages of the book. However, this example is only a single page book.

To create this, we wrote the following XML file and loaded the XML on the first page of our book.


NOTE: Even the content of the rest of the page elements could've been set in the XML. However, we did not want to overly complicate this example.

Then, on the first page of our book, we ran this action:
XMLHttpRequest() loads the XML file ...

Image 1.png
Load XML and Notify the XML <make> element.
Image 1.png (13.43 KiB) Viewed 5891 times

Of course, our XML file must be flagged for inclusion in the export using the DHTML Export Tree Manager:
Image 2.png
Include the XML file in the export
Image 2.png (85.19 KiB) Viewed 5891 times

Download the source files in ToolBook v11.5 format.
Contact me offlist for other versions.
Attachments
SOURCE.zip
Download source (v11.5 tbk); and XML file
(80.58 KiB) Downloaded 497 times
Clifton
Site Admin
 
Posts: 732
Joined: Tue Jan 14, 2014 1:04 am

Return to XML Configurations – Plugin Examples

Who is online

Users browsing this forum: No registered users and 1 guest

cron