Recent Blogs


Blog Archive
2008  


Sunday, March 9th, 2008
jquery jargon

Not going to tell you how long the code below took me to figure out:


//this is jQuery code
$(document).ready(function () {
$("input[@name='RadioGroup1']").click(function(){
alert('Chris- you spent a half day trying to get this to work!');
//Now do something constructive!
});
});
Tags:  code, jquery, wtf
2 Comments
daveheinzel
1) I was looking at your source code just the other day, 'cause when you leave a comment on your site, there's a little spinner graphic, and on Safari, it spins properly. I have spent hours trying to get Humzoo's little spinners to work on Safari, but for some reason, when you submit a form on Safari, animated GIFs stop spinning. There are some workarounds for this problem in IE, but not for Safari. At least that's what I had read, and then I saw yours. But I couldn't figure it out by back-tracing the code. I remember seeing several "jquery" calls, but I don't know what that is. Seems that maybe it's part of some third-party code or something, but the JavaScript involved is a little beyond my comfort level.

Anyway, one day our spinner will work on Safari. If you have any insight into this issue, let me know. Does the spinny work just fine on IE for you? Any of our forms in the Account or Edit pages that submit forms have buttons that turn into one with an animated spinner thing. That's what I'm referring to.

Also, sorry we don't format code very well in the blogs. Perhaps we could allow PRE tags, but not sure that alone would do it.
Dave Heinzel   Sunday, March 9, 2008
gotshoo
2) Didn't know the spinny thing was an issue in Safari. I use Firefox most of the time for surfing and development. Only IE when I have to. What happens when you make a comment on Gotshoo in Safari?

Jquery is a javascript framework. Meaning, simple things as capturing the click even for a form control that takes many lines of regular Javascript code can be done in only in a few lines. There's also some animation features and real time form validation. Also there is a ton of plugins: http://plugins.jquery.com/.

I am still getting my hands dirty with javascript, but it's a great alternative to doing everything in flash or server side. I'll look into the spinny thing and see if I can't find anything.
shoo   Sunday, March 9, 2008
Leave a Comment


Your Name
Enter the text from the left:
Publish Comment