I'm using
jquery file upload - when each file has uploaded, the name of the file appears, and I've added a check button:
<td colspan="2"><span class="ui-icon ui-icon-check"></span></td>
What I'd like to do is make
jplayer fire off a "ding" sound as soon as each file is up.
For example (just to test)
- $('.ui-icon-check').live('click', function() {
- $(this).css("background-color","yellow");
- });
needs an action, like a click or a mouseover or something. For each file that arrives, and therefore adds another instance of ui-icon-check, I'd like to fire an event. A weekend of googling has really only turned up
Live Query from 2007, which works perfectly with
- $('.ui-icon-check').livequery(function(){
- $(this).css("background-color","yellow");
- });
but shouldn't "live" be able to handle this now?
But when I try
- $('.ui-icon-check').live(function() {
- $(this).css("background-color","yellow");
- });
it just throws
- TypeError: (a || "").split is not a function
- http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js
- Line 17
So am I totally mis-understanding the point of live, or just mis-using it?
I'm doing it this way rather than mess with the uploader code as he's updating the code all the time, and the more I can stay away from code code the better I think. Thanks!