jQuery Mobile ASP.NET Gotcha

I have been working on jQuery Mobile recently. Specifically the feature where new pages are loaded in the background via AJAX calls. It is tricky to get everything working properly with ASP.NET AJAX and multiple ASP.NET pages.

The point to remember is that jQuery Mobile "pages" are really the areas we mark as page in the HTML. So, when it loads the next "page" in the background, you don't get what you would normally expect - i.e., you only get the stuff inside the jQuery Mobile page.

What this means is that:

1. All Javascript files have to be referenced in all pages.
2. All web service ASP.NET references have to be referenced in all pages.
3. Make sure that Javascript used for one page does not clash with that of other pages.

When I was initially working on the pages, why something did not work simply made no sense. Then it started making sense in an intuitive manner which I liked a lot.

Comments

Popular posts from this blog

Tutorial: Using Google Cloud Storage from C# and .NET

Late 2008 Macbook only giving 1.5 gb/s speed with 6 gb/s Intel SSD?

The ridiculous interview experience