diff --git a/README.markdown b/README.markdown index 74eb264..5685b72 100644 --- a/README.markdown +++ b/README.markdown @@ -1,6 +1,16 @@ # jQuery BBQ: Back Button & Query Library # [http://benalman.com/projects/jquery-bbq-plugin/](http://benalman.com/projects/jquery-bbq-plugin/) +## This Fork + +This fork was created to enable pushState support for jquery-bbq. So far, it works for my purposes, but I forsee it could use considerable refactoring. My hope would be to keep the current method signature, so further refactoring will mostly be behind the scenes, but that could turn out to be optimistic! + +The second goal of my fork is to provide a pjax-style add-on for jquery-bbq, an example of which is available here: +[http://www.jquerybbq.dotcloud.com/examples/fragment-pjax/](http://www.jquerybbq.dotcloud.com/examples/fragment-pjax/) + + +----- + Version: 1.3pre, Last updated: 8/26/2010 jQuery BBQ enables simple, yet powerful bookmarkable #hash history via a cross-browser window.onhashchange event. In addition, jQuery BBQ provides a full jQuery.deparam() method, along with both fragment and query string parse and merge utility methods. diff --git a/examples/config.php b/examples/config.php index 184df44..cd915ec 100644 --- a/examples/config.php +++ b/examples/config.php @@ -1,4 +1,4 @@ -Project Home, Documentation, Source - + + + + + + + + +
+ With jQuery BBQ you can keep track of state, history and allow bookmarking while dynamically modifying the page via AJAX and/or DHTML.. just click the links, use your browser's back and next buttons, reload the page.. and when you're done playing, check out the code! +
+ ++ In this basic example, window.location.hash is used to store a simple string value of the file to be loaded via AJAX, so that not only a history entry is added, but also so that the page, in its current state, can be bookmarked. Because the hash contains only a single filename, this example doesn't support multiple content boxes, each with their own state, on the same page, but that's definitely still possible! Just check out the advanced window.onhashchange example. +
+ +
+ Click a nav item above or below to load some delicious AJAX content! Also, + once the content loads, feel free to further explore our savory delights by + clicking any inline links you might see.
+This example attempts to wrap up a pjax-style interaction as an add-on to jquery-bbq. After you've included the jquery.bbq.pjax.js file, implementing it is as simple as:
+ ++ ++ + \ No newline at end of file diff --git a/examples/fragment-pjax/kebabs.html b/examples/fragment-pjax/kebabs.html new file mode 100644 index 0000000..2523e98 --- /dev/null +++ b/examples/fragment-pjax/kebabs.html @@ -0,0 +1,16 @@ + + + + +
+Who doesn't like kebabs? Nobody! That's why this meat and veggie combo is sure +to blow your mind! Still, if you aren't in the mood for wooden sticks, why not let a +delicious Burger whet your appetite?
+ + + \ No newline at end of file diff --git a/examples/fragment-pjax/kebabs.jpg b/examples/fragment-pjax/kebabs.jpg new file mode 100644 index 0000000..69ab061 Binary files /dev/null and b/examples/fragment-pjax/kebabs.jpg differ diff --git a/examples/fragment-pjax/kielbasa.html b/examples/fragment-pjax/kielbasa.html new file mode 100644 index 0000000..b0bcc83 --- /dev/null +++ b/examples/fragment-pjax/kielbasa.html @@ -0,0 +1,16 @@ + + + + +
+One bite of this kielbasa will have you asking for the recipe, and that's a fact. +But save some room, because while you're here, you've got to check out our fantastic +fall-off-the-bone Ribs!
+ + + \ No newline at end of file diff --git a/examples/fragment-pjax/kielbasa.jpg b/examples/fragment-pjax/kielbasa.jpg new file mode 100644 index 0000000..a94f7d7 Binary files /dev/null and b/examples/fragment-pjax/kielbasa.jpg differ diff --git a/examples/fragment-pjax/ribs.html b/examples/fragment-pjax/ribs.html new file mode 100644 index 0000000..836b519 --- /dev/null +++ b/examples/fragment-pjax/ribs.html @@ -0,0 +1,16 @@ + + + + +
+What's better than a half-rack of ribs? A full rack! And if you like ribs, +which you do, you're sure to love our perfectly seared flame-broiled +Steak!
+ + + \ No newline at end of file diff --git a/examples/fragment-pjax/ribs.jpg b/examples/fragment-pjax/ribs.jpg new file mode 100644 index 0000000..71be314 Binary files /dev/null and b/examples/fragment-pjax/ribs.jpg differ diff --git a/examples/fragment-pjax/steak.html b/examples/fragment-pjax/steak.html new file mode 100644 index 0000000..96098e9 --- /dev/null +++ b/examples/fragment-pjax/steak.html @@ -0,0 +1,16 @@ + + + + +
+Seasoned and cooked perfectly, this amazing steak aims to please! And if you +have room left over, don't forget to help yourself to a plate of our sweet +Kielbasa!
+ + + \ No newline at end of file diff --git a/examples/fragment-pjax/steak.jpg b/examples/fragment-pjax/steak.jpg new file mode 100644 index 0000000..f05b76d Binary files /dev/null and b/examples/fragment-pjax/steak.jpg differ diff --git a/examples/index.php b/examples/index.php index 8986ec1..ccac25a 100644 --- a/examples/index.php +++ b/examples/index.php @@ -1,4 +1,4 @@ - @@ -20,7 +20,7 @@ - +