Archive for the ‘Javascript’ Category
JavaScript – Safari Bug?
Posted by Robert Swarthout | Filed under Javascript, Safari
On PaperBackSwap and SwapaCD we have some tool-tip rollovers that display a definition of what we define as keywords. (This can be seen in action on http://www.paperbackswap.com/help/hdtw.php. The word “credit” has been highlighted.) It came to our attention the other day that Safari was display anything replaced by JavaScript as $& which was suppose to be the text or “keyword” it found. We have a separate JavaScript file that gets loaded into the page that has the keywords we have definitions for. Well the $& worked for in both IE 6 and 7, Firefox 1.5 and 2 and Opera but not Safari. Simply changing the $& to $1 since I only needed the first thing it found solved the problem. So now when the user clicks one of the links with dashes under it they get the definition of that keyword loaded up from the server with an AJAX call. Yipee now all the browsers are working again…..