Hi Caleb, Could you please post your LiveSaver object and the element variable initialization as well. I tested your code with a more or less meaningful dummy implementation of LiveSaver and element and it works for me in: FF3, Chrome1, Opera9, IE8
I guess the problem is either in LiveSaver.add() or LiveSaver.save(). by(e) Stephan 2009/2/3 Caleb Morse <morse.ca...@gmail.com>: > I am having trouble getting this piece of code to work correctly in Chrome. > It works just fine in in IE7, IE8, and FF. Watching the Chrome javascript > console doesn't reveal anything useful. > I manually checked each value in the if statements, and they are all coming > back true. > The textbox is not created or changed using javascript so I shouldn't need > to use .live. > > > $('#textbox').bind('keyup focus blur', function() { > if(LiveSaver.enabled === true && ((new Date()).getTime() - > LiveSaver.lastSave) > LiveSaver.saveThreshold) { > > LiveSaver.lastSave = (new Date()).getTime(); > if($('#' + element).val() != LiveSaver.data[LiveSaver.page][element]) { > LiveSaver.add(element, $('#' + element).val()); > LiveSaver.save(); > } > } > }); > -- Caleb >