Load remote ToolBook content in field with transparency

Actions you can use in your projects.

Load remote ToolBook content in field with transparency

Postby Clifton » Mon Jan 27, 2014 5:36 pm

Objective: Load remote content in a ToolBook field so that the remote content appears transparent relative to the parent.
Solution:
  1. In your parent book, use pgGotoURL() to load the remote content into a ToolBook field on the page:
    Image 3.png
    Parent book: pgGotoURL() to load remote content
    Image 3.png (22.58 KiB) Viewed 4547 times
  2. In your remote book, execute setBrowserWindowStyles() on load book to enable browser transparency:
    Image 1.png
    Remote book: on book load
    Image 1.png (22.52 KiB) Viewed 4547 times
  3. In your remote book, execute setPageContentPosition() on load page for the first page to enable ToolBook page transparency:
    Image 2.png
    Remote book: on page load for first page
    Image 2.png (22.63 KiB) Viewed 4547 times
  4. Export the remote book FIRST.
  5. Flag the remote book export folder for inclusion in the parent book's export using the PowerPac DHTML Export Tree Manager (accessed via the PowerPac menu item "Add folders to export tree":
    Image 5.png
    Parent book: flag remote book for inclusion in export
    Image 5.png (83.22 KiB) Viewed 4547 times
  6. Export the parent book.
Attachments:
Zip file contains both a parent and remote book set up as shown above with alternate ways of closing the remote content given inside the remote book. The remote page is deliberately set to green and the browser background to black to demonstrate the effectiveness of this procedure. Feel free to post your comments.
loadingRemoteBooksTransparent.zip
v11.5 example
(83.12 KiB) Downloaded 442 times
Clifton
Site Admin
 
Posts: 732
Joined: Tue Jan 14, 2014 1:04 am

Return to Action Editor Examples

Who is online

Users browsing this forum: No registered users and 1 guest

cron