jQuery Mobile Framework
Find a file
scottjehl 9b57c46349 Refactored urlStack and updated dialog and page plugins to match. jQuery Mobile's internal history now attempts to follow the history menu when urls change from hashchange, even for changes that go multiple steps forward or back. The internal history stack is now pruned based on whether a user goes back and then changes direction, whereas before a back-button click would result in a pop off the history. Instead we now maintain an active index number in the history stack, which allows us to maintain references to transitions that are saved on pages reached through clicking the forward button as well. This fixes #636.
In the process, some other small changes should be noted:
urlStack is now urlHistory, a hash of methods and properties used for history stack management (stack, activeIndex, getActive, getPrev, getNext, addNew, clearForward, and listening Enabled). All these are documented inline and exposed on $.mobile.urlHistory (I'm not sure these will be publicly documented, but just exposed internally for plugins for now).

$.changePage has two argument changes: the "back" argument is now called "reverse"; this results in no change from an end-user standpoint, but reflects the fact that it only reverses the direction of a transition without affecting the internal history stack, and second, a new argument at the end defines whether changePage was called from a hashChange which makes that url open to history menu guessing.
2011-01-23 17:33:36 -05:00
build Add the ability to compress the CSS files. Now include both the Google Closure Compiler and the YUI Compressor (for CSS). 2010-10-14 18:02:56 -04:00
design All new icons and AI file for safe keeping. Goodnight icons. 2010-10-15 21:15:48 -04:00
docs Refactored urlStack and updated dialog and page plugins to match. jQuery Mobile's internal history now attempts to follow the history menu when urls change from hashchange, even for changes that go multiple steps forward or back. The internal history stack is now pruned based on whether a user goes back and then changes direction, whereas before a back-button click would result in a pop off the history. Instead we now maintain an active index number in the history stack, which allows us to maintain references to transitions that are saved on pages reached through clicking the forward button as well. This fixes #636. 2011-01-23 17:33:36 -05:00
experiments Removed jquery.js from js/index.php and updated all html doc/experiments/test files that incuded "js/" so that they also include jquery.js manually. 2011-01-20 11:26:12 -08:00
external Ported Jasmine integration tests over to Qunit tests. Kept these in a different folder of integration tests has there purpose is to test at a page level rather then a method by method level. 2010-12-31 13:37:17 -05:00
js Refactored urlStack and updated dialog and page plugins to match. jQuery Mobile's internal history now attempts to follow the history menu when urls change from hashchange, even for changes that go multiple steps forward or back. The internal history stack is now pruned based on whether a user goes back and then changes direction, whereas before a back-button click would result in a pop off the history. Instead we now maintain an active index number in the history stack, which allows us to maintain references to transitions that are saved on pages reached through clicking the forward button as well. This fixes #636. 2011-01-23 17:33:36 -05:00
speed Removed jquery.js from js/index.php and updated all html doc/experiments/test files that incuded "js/" so that they also include jquery.js manually. 2011-01-20 11:26:12 -08:00
tests comment correction in core mobile init test 2011-01-22 22:51:11 -08:00
themes merge 2011-01-22 17:48:36 -05:00
.gitignore Also .gitignore combine folder created by Ant build 2010-12-16 10:47:18 +01:00
.htaccess updated kill cache settings 2010-11-09 18:06:44 -05:00
build.xml moved page above core in the makefile, build xml, and manifest under js. Fixes #619 2011-01-22 22:31:16 -08:00
combine.php Fixed 413 - Dev issue: our .htaccess file on the server is doing a 301 redirect which is causing css and image loading issues. 2010-11-09 13:58:28 -08:00
index.html Removed jquery.js from js/index.php and updated all html doc/experiments/test files that incuded "js/" so that they also include jquery.js manually. 2011-01-20 11:26:12 -08:00
Makefile moved page above core in the makefile, build xml, and manifest under js. Fixes #619 2011-01-22 22:31:16 -08:00
README.md renamed jquery.mobile.js jquery.mobile.core.js. updated build files, etc to match 2010-11-18 22:50:33 -05:00
version.txt updated version 2010-11-12 08:27:33 -05:00

Early stage development for the jQuery Mobile UI Framework. Code is subject to change dramatically!

Usage

Early documentation: https://github.com/jquery/jquery-mobile/wiki/_pages

For now, I've set things up with a little combinator script to concat all the css and js files into one request and gzip. (js/ and themes/default) You'll need to point your local apache & php webserver at this root directory in order to preview things.

If you don't currently have a webserver running locally, a quick way to get up and running is to download and install Mamp for Mac OSX. Once installed, just open Mamp, click preferences, go to the Apache tab, and select your local jQuery Mobile folder as the root. Then you can open a browser to http://localhost:8888 to preview the code. An alternative is XAMPP, which is also available for Windows, though you need to actually modify Apache's httpd.conf to point to your checkout: http://www.apachefriends.org/en/xampp.html You need the Rewrite (mod_rewrite.so), Expire (mod_expires.so) and Header (mod_headers.so) modules loaded.

Whenever this configuration becomes inconvenient, we can remove it, obviously it's not meant to stay!

  • when adding a js or css file, add it to the manifest in its directory and it'll be included in the request
  • As far as JS files go, jQuery.mobile.core.js is the starting point.