jQuery

Like what you read? Share:
or Subscribe:

IE Change Event Delay

Computer MouseI recently developed a sign-up form for a client that includes on-page price total calculation using JavaScript (jQuery). The premise is simple: the user provides information and specify options, then clicks a radio button to choose a specific price plan. The initial total price calculation is triggered by the change() event for the radio button elements. But, the client was concerned (and with user testing, it turned out rightly so) because in IE, the price calculation didn't happen until the user clicked somewhere else on the page. In cases where they first clicked one option, then a different one, the price would seemingly lag behind because of IE’s delayed change event firing. It was confusing to the user, but worse—confusing for me to “fix” IE’s implementation. … Continue reading 

Posted in Front-end Dev | Tagged , , | 1 Comment

The TITLE element and jQuery’s text() function

Way WrongIn a day of zero fun, I ended up tasked with debugging a jQuery-based script that seemed to be perfectly fine, except of course, the part where it wasn’t working as expected in IE. After some tracing, it turns out the issue had everything to do with one line of code not returning a value: $("title").text();. To translate, the author of the code had been trying to retrieve the text of the title element using jQuery’s text function. But, turns out that doesn’t work in IE. … Continue reading 

Posted in Front-end Dev | Tagged , , | 6 Comments

Losing Values When Cloning Forms

I’ve finally started development of a book recommendation widget for the musings and reviews on books I read section of my site. The general functionality is pretty simple: visitors have a few fields to complete with info about the book; upon submission, their recommendation is saved to a database; the new recommendation is shown to all and sundry in a “last recommendation” section; rinse & repeat. The whole no-JS needed, server-side scripting processing involved is simple, straight-forward and was quickly completed. Being a front-end developer, however, I want to make sure this can all be done in a smooth JS-enhanced way as well (for some nifty UX). That’s where I encountered yet another annoying JavaScript problem. … Continue reading 

Posted in Front-end Dev | Tagged , , | 3 Comments

PSA: Update SimpleModal jQuery plugin

Just a quick note for y’all: if you’re using the jQuery SimpleModal plugin on your or a client’s site, make sure you’ve updated it recently. The old version of the plugin does not play well with IE 8, causing your entire modal popup system to fail spectacularly. … Continue reading 

Posted in Front-end Dev | Tagged , | Leave a comment