Alright I figured out what the problem was. I was beta testing win 7, and you have to run chrome with the --in-process-plugins flag set for it to run correctly. I tried it on another machine and it worked exactly like it was supposed to.
Thanks for the help, -- Caleb On Tue, Feb 3, 2009 at 1:18 PM, Stephan Veigl <stephan.ve...@gmail.com>wrote: > > Hi Caleb, > > ok, the project seems to complex to strip out some parts and run them > individually. > Anyway, I looked at the sources and they look quite ok to me. > > Sorry, that I can't help more with this. > Just a hint, you could try to add some debug outputs to your code and > comment out some parts until you identify the function causing the > problems. > e.g.: > if ($('#' + element).val() != LiveSaver.data[LiveSaver.page][element]) { > $('<span>saved</span>') > .insertAfter('#' + element) > .fadeOut("slow", function(){$(this).remove();}); > // LiveSaver.add(element, $('#' + element).val()); > // LiveSaver.save(); > } > > by(e) > Stephan > > > 2009/2/3 morse.caleb <morse.ca...@gmail.com>: > > > > Sure, here you go > > > > // begin code // > > > > > > // End code // > > > > On Feb 3, 3:04 am, Stephan Veigl <stephan.ve...@gmail.com> wrote: > >> 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 > > > >