The HIJAX controller progressively enhances page loading for browsers that have the new HTML5 history object pushState/popState function.
Once the a new page is loaded via AJAX the controller looks for all html elements
Sometimes is it nessesary to disable HIJAX on specific links. eg. link to a section of the site that has a different wrapper or different dynamic areas or legacy pages from older versions of a site, etc.
These links can be exempted from the HIJAX behavior as follows:
Default configuration excludes the following link forms
document.location.href = '/some-path') need to be coded as an event trigger
$('body').trigger('DigitopiaLoadPage','/some-path') to work with this controller.
Sometimes it is necessary to generate content for certain pages on the client side.
The HIJAX controller matches content handler
path to the current url and gets the content
from the associated contentHandler by calling the
contentHandler or using the
data-hijax="true"and must be wrapped in a body tag so that the new page can be merged with the old content.
The HAJAX controller emits the following events: