I like jQuery. I use it in all my Rails projects these days. One thing I’ve struggled with for the longest time is that for some reason all my jQuery ajax requests come through as html not as js. I thought adding something like this to application.js would fix the problem: // In application.js jQuery.ajaxSetup({…
Category: ajax
Userfly Ruined My Weekend – “jQuery(“form.ajax”).ajaxForm is not a function”
I’ve been a big fan of Userfly because they make usability testing easy. Their tool is really quite amazing. However, this last weekend and into today I’ve become less of a fan. After a late night deploy last week on a site I’ve been working on I noticed that none of my javascript worked. Lucky…
jQuery.ajax – Get in Firefox, Post in Internet Explorer
The docs for jQuery.ajax indicate that by default the request is made using ‘GET’. I would still recommend setting the type to ‘GET’. We just deployed a site and found that for some reason some versions of Internet Explorer were doing a POST instead of a GET. This is problematic with a Ruby on Rails…
Ajax calls using jQuery in Ruby on Rails
jQuery is the hot javascript library and it is small and it is cooler than Prototype, the default library that comes with Ruby on Rails. Ergo I plugged it in and pulled out everything else. The ajax calls are very simple and look like this: $.post(“function_name”,{ key:value } ,function(data) { // do stuff with data…