Where object is myLHS = document.getElementById(“lhs”); trying to use object.style.float = ‘right’ wasn’t working. but using setAttribute does (at least it does in Firefox on a PC): myLHS.setAttribute(‘style’, ‘float: right’); There’s more on this here: Setting Float via JS – OZONE Asylum, home of the Mad Scientists See also the quirksmode entry on JavaScript – [...]
more... »
Sometimes it’s necessary to repeat an action in JavaScript to check if something’s updated since last time the function was called: window.setInterval(“goAjax()”,1000); Sometimes things don’t immediately update in a browser so you may need to delay a function call using something like this: var bVal = setInterval(“buttonValid();”,500); and clearInterval(bVal); Functions/statements must be in quotes. Timings [...]
more... »
In very few lines it’s possible to search and replace text in MySQL: UPDATE table_name SET column_name = replace(column_name,”find_this”,”replace_with_this”) Thanks to Torkil Johnsen’s Search and replace in MySQL article
Tags: MySQL, search and replace, UPDATE
more... »