diff --git a/docs/pages/dynamic-samples/index.html b/docs/pages/dynamic-samples/index.html new file mode 100644 index 00000000..3142824a --- /dev/null +++ b/docs/pages/dynamic-samples/index.html @@ -0,0 +1,24 @@ + + + + + +Dynamic Page Samples + + + + + + +
+

Categories

+
+

Select a Category Below:

+ +
+
+ + diff --git a/docs/pages/page-dynamic.html b/docs/pages/page-dynamic.html index e6ddabec..be88b331 100644 --- a/docs/pages/page-dynamic.html +++ b/docs/pages/page-dynamic.html @@ -255,7 +255,7 @@ function showCategory( urlObj, options )

After it injects the markup, it then calls the appropriate jQuery Mobile widget calls to enhance the list markup it just injected. This is what turns the normal list markup into a fully styled listview with all its behaviors.

Once that's done, it then calls $.mobile.changePage(), passing it the DOM element of the page we just modified, to tell the framework that it wants to show that page.

Now an interesting problem here is that jQuery Mobile typically updates the browser's location hash with the URL associated with the page it is showing. Because we are re-using the same page for each category, this wouldn't be ideal, because the URL for that page has no specific category info associated with it. To get around this problem, showCategory() simply sets the dataUrl property on the options object it passes into changePage() to tell it to display our original URL instead.

-

That's the sample in a nutshell. It should be noted that this particular sample and its usage is not a very good example of an app that degrades gracefully when JavaScript is turned off. We will be posting other examples that demonstrate how to degrade gracefully in the future.

+

That's the sample in a nutshell. It should be noted that this particular sample and its usage is not a very good example of an app that degrades gracefully when JavaScript is turned off. That means it probably won't work very well on C-Grade browsers. We will be posting other examples that demonstrate how to degrade gracefully in the future. Check this page for updates.