Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Added an extension point to hook in third party persistence layers #303

Closed
wants to merge 8 commits into from
Closed

Conversation

rsaccon
Copy link

@rsaccon rsaccon commented Oct 26, 2010

For page loading I have renamed $.ajax to $.ajaxExt, so it can be selectively overwritten by third party caching and persistence layers, as e.g. persistencejs, which provides sync capabilities between local HTML5 SQL DB and serverside DB.

I have also provided a working demo based on persistencejs / jquery-mobile plugin and with patched jquery at my persistencejs fork, just drop the whole project into a server and load demo-jquerymobile.html, at first load pages get loaded via ajax request and then cached into local HTML SQL DB.

If another way is preferred, to allow overwriting ajax page loading, just let me know and I will adapt the plugin and demo.

@rsaccon
Copy link
Author

rsaccon commented Oct 26, 2010

One more thought:
in case the suggested way to hook in a persitence layer for page loading (using custom-named $.ajax) is not appreciated, another way would be to decide based on URL whether to reroute to persistence layer. That would require no modification of jquery.mobile.js

@rsaccon
Copy link
Author

rsaccon commented Oct 26, 2010

modified my demo and plugin according to previous comment. No more jquery-mobile patching necessary, please discard this pull request.

This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant