Tag: jquery

How to download the jQuery Mobile documentation for offline viewing

Download the jQuery Mobile documentation for offline use.

Download the jQuery Mobile documentation for offline use.

Recently I was heading off on a long airplane trip and, because SeatGuru said I would have power at my seat, I was planning to do some tinkering with jQuery Mobile.

Having power at your seat is one thing, but having a WiFi connection is another. In anticipation of having no connectivity, I sought ways to download the full jQuery Mobile documentation.

In the past, I’ve successfully used a Windows program called HTTrack for spidering and downloading any webpage. Not finding or liking any of the Mac alternatives, I Googled further and found this simple solution.

Continue reading »

Getting Started with AJAX in Django: a Simple jQuery Approach

AJAX in Django using jQuery

AJAX in Django using jQuery

I recently created a side project to explore a few tech areas I wanted to learn more thoroughly. One of those areas was how to implement AJAX in Django using jQuery.

In a nutshell, the site, TruthTruthLie.me (update 3/5/2013: the site is temporarily offline as switch my Facebook Connect implementation from django-socialregistration to django-social-auth) presents three facts about you and challenges your friends to click on the one that is a lie.

When your friend clicks on a fact, I send the clicked fact_id via AJAX to a url. A Django url pattern routes the click to a view where I check what “type” the fact is, return the result via JSON to the client and update the page dynamically without a page refresh.

Continue reading »

Real Time Analytics