Account Creation and Review Bug Fixes

Posted by admin on Wed Oct 1 23:09:53 2008 to Site News:

I've updated the software to correct a couple of problems. The first problem is with account creation. Users would not be automatically logged in after creating an account. This was the result of a bug which has been fixed. The other problem was that some users would get a message saying "Loading..." when trying to enter a new review of comment.

It took a while but I tracked down this problem to a bad interaction between a Javascript library I use (Scriptaculous) and certain web browsers (most notably Internet Explorer). The real fix for this is either some dirty coding inside Scriptaculous (which I am not prepared to do at this time) or changing to use a different Javascript library. I'm strongly considering switching from Prototype/Scriptaculous to jQuery, but that's a big project and I need to fix this problem now. So I've written a work-around. The review input code works properly with Safari, Firefox and Opera, so when UVFood detects one of these browsers it will use the old code. Otherwise it will use the work-around version which causes a page reload instead of doing the edit in place.

No Comments