- DynamicElementSelector
- Default:
#dynamicContent
- Description: Used to specify the name of the container that will be swapped on dynamic load
- Default:
- SkipDynamicLoadSelector
- Default:
.SkipDynamicLoad
- Description: Used to specify elements that will not be hijacked to perform a dynamic load
- Default:
- UseAPI
- Default:
true
- Description: Identify whether requests will be made to a REST API or plain old pages
- Default:
- APIUrlSalt
- Default:
/api/contentfilter/
- Description: Defines the change to the URL made to made a REST API request rather than a full page request.
- Example:
/api/contentfilter/
==http://www.yourdomain.com/api/contentfilter/pageid
- Default:
- HttpHeaderNameDynamicElementSelector
- Default:
X-DynamicLoad-Element-Selector
- Description: Define the HTTP header used to send the value of DynamicElementSelector to the REST API
- Default:
- HttpHeaderNamePageTitle
- Default:
X-Page-Title
- Description: Define the HTTP header used by the REST API to send the page title back to DynamicLoadJS
- Default:
- CallbackBeforeLoad
- Default:
null
- Parameters:
- Url: The path portion of the requested url
- Description: Define a function to callback before a dynamic load request is made for content
- Default:
- CallbackAfterContentInject
- Default
null
- Parameters:
- Url: The path portion of the requested url
- $oldContainer: A jQuery object of the old container that will be replaced
- $newContainer: A jQuery object of the new container that will replace the old container
- callback: This is a reference to callback to dynamicLoadJS. This must be executed when the transition is complete.
- Example:
callback();
- Example:
- Description: Use to allow the complate control of the transition. In this event
- CallbackAfterLoadSuccess
- Default:
null
- Parameters:
- Url: The path portion of the requested url
- Description: Define a function to callback after a dynamic load request is successfully made for content
- Default:
- CallbackAfterLoadFail
- Default:
null
- Parameters:
- Url: The path portion of the requested url
- Description: Define a function to callback after a dynamic load request is made for content, but fails
- Default:
- CallbackAfterLoadAlways
- Default:
null
- Parameters:
- Url: The path portion of the requested url
- Description: Define a function to callback after a dynamic load request is made for content, regardless of success
- Default:
-
Notifications
You must be signed in to change notification settings - Fork 0
RyanEaves/DynamicLoadJS
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published