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

Refactor: Ajax callback breakout

StevenBlack edited this page May 29, 2011 · 2 revisions

Current situation (as of late May 2011, pre-Beta 1)

  • The jQuery Mobile $.ajax() call lives in jquery.mobile.navigation.js within a function named $.mobile.loadPage.

  • The success and error callbacks are defined inline within the $.ajax() call itself.

  • The notion is breaking-out these callbacks would greatly improve jQuery Mobile extensibility by making the callbacks accessible.

Current blockers in the success callback

  • Reference to memvar fileUrl which is defined in the $.mobile.loadPage closure. fileurl is moreover dependent on memvar absUrl which depends on $.mobile.loadPage parameter `url.

  • Reference to memvar base which is defined in the $.mobile.loadPage closure.

  • more coming...

Clone this wiki locally