Twitter Bootstrap Single Page App with Node.JS

This is Part 1 of a 3 part series on a single page application for Node.JS. I love Twitter Bootstrap. Yes, there are several similar frameworks, but I like the fact that Bootstrap works on nearly all modern browsers (Firefox, Chrome, Safari (Stinkin) IE 8+). Although Twitter Bootstrap was not initially great for Mobile apps, they have done some recent updates that provide near compatibility on mobile devices like iPad, iPhone and Android. I started this project as a boilerplate for single-page apps, and later realized that it’s a good backend for Bootstrap. There are several great Bootstrap mods, themes … Continue reading Twitter Bootstrap Single Page App with Node.JS

Cross Domain (External) Ajax calls with JQuery / Javascript

Originally posted on Do you need to use this code :
Issues 1. As of jQuery 1.5, the success callback function receives a “jqXHR” object (in jQuery 1.4, it received the XMLHttpRequest object). However, since JSONP and cross-domain GET requests do not use XHR, in those cases the jqXHR and textStatus parameters passed to the success callback are undefined. 2. Cross-domain requests are inherently insecure. Either you are sending credentials over clear text, OR, you cannot make cross-domain requests (not without an ugly client side warning atleast) on HTTPS. Solution jQuery 1.5, there has been a new property added to $.ajax.… Continue reading Cross Domain (External) Ajax calls with JQuery / Javascript