If you write code you hate Internet Explorer. You get everything just right in Chrome, Firefox, Safari – any other browser really and then everything falls apart in Internet Explorer. We use CORS in some of the work with do at Open Tapestry. It works really well for letting the client figure out which service…
Category: jQuery
jurlp and Internet Explorer 8
For those who don’t write code the choice to use Internet Explorer probably hasn’t been influenced by much more than the fact that it’s sitting on the desktop ready to use. For those of us who do write code we hate you. We use jurlp in quite a bit of our code because it’s a…
Require.js, Backbone.js and Almond.js Example Application
We refactored OERGlue to use backbone.js. That makes our life a lot simpler. Along the way we discovered require.js and I entered nerdvana. The documentation for require.js and backbone.js are both good and it doesn’t take to long to read through the code. However, putting them together, getting the development environment right and then deploying…
Pushing my luck with jQuery. Scope matters.
OER Glue makes heavy use of jQuery. We’re currently working on a proxy version of the technology that won’t require installing a browser plugin. It’s pretty cool. One of the biggest challenges for us has been ensuring consistent look, feel and operation of our technology across any possible website on the Internet. That’s not a…
Get jQuery Working With Ruby on Rails 3
I thought I had fixed everything and made ready for Rails 3 in my applications. Turns out I was wrong. My wife tells me I’m wrong all the time so I didn’t feel to bad. The first sign was that something bad had happened was that all my delete links stopped working. I found a…
Converting a jQuery Object into a String
I’m so used to everything having a ‘to_s’ method that when it’s not there I feel like going out a kicking puppies. In jQuery you can always get the contents of a jQuery object thus: Html: var html = myObject.html(); </pre> Text: var html = myObject.text(); </pre> That’s great and has been extremely helpful over…
Uploadify onComplete Wouldn’t Fire Until I Swore – A Lot
I’ve been trying to get Uploadify to work inside my <a href=”http://github.com/jbasdf/uploader”Uploadify>uploader gem</a>. Things went pretty well until I combined that with the muck-contents gem and tried to do multiple file uploads from within a plugin I’d written for the TinyMCE editor. At that point things got ugly. If you do much research on Uploadify…
jQuery Ajax requests are ‘html’ not ‘js’
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”
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…