Projects‎ > ‎XBL‎ > ‎

Improved JavaScript API for XBL components

NOTE: This page describes an Orbeon Forms project, not a feature which is currently part of Orbeon Forms.

Client-side JavaScript for XBL upon back/reload


XBL controls that need companion client-side scripts:
  • typically initialize upon xf-enabled
  • might run other script when receiving XForms events 
Upon browser back/reload:
  • server computes differences in tree state
  • server sends diff to client
  • client re-runs diffs
  • no xxf:script runs at that time
  • ⇒ XBL components are out of sync


The solution might involve:
  • XBL components being informed of the back/refresh and given an opportunity to re-run script
  • any other idea?