Skip to content
Menu
Justin Ball
  • About
  • Privacy Policy
Justin Ball

Category: ajax

jQuery Ajax requests are ‘html’ not ‘js’

Posted on August 9, 2010November 1, 2021

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({…

Userfly Ruined My Weekend – “jQuery(“form.ajax”).ajaxForm is not a function”

Posted on July 20, 2010November 1, 2021

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

Posted on July 8, 2009November 1, 2021

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

Posted on June 7, 2008November 1, 2021

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…

©2025 Justin Ball | Powered by SuperbThemes & WordPress