Javascript - Joshua dot Perina dot com http://joshua.perina.com en-us Blog Search Results joshua.perina.com Thu, 29 Jul 2010 00:14:39 GMT http://getlara.com Javascript DOM Ready for SSL in IE /post/javascript-dom-ready-for-ssl-in-ie Many of the existing javascripts snippets you see on the internet to determine whether the DOM is fully loaded do not work properly in Internet Explorer when using the HTTPS secure protocol.  The "normal" script is as follows and works great for HTTP but will through unsecure item warnings in IE because it adds a script element to the page.  Here is the updated script which works with both secure and unsecure connections: function checkReady() { if (document.addEventListener) {... Wed, 30 Dec 2009 02:05:55 GMT /post/javascript-dom-ready-for-ssl-in-ie Javascript Replace All with Variable /post/javascript-replace-all-with-variable Here is how you replace all values in a string with another string which is inside of a variable using Javascript:   var str = "Please change all the change words in this sentence."; var searchfor = "change"; str = str.replace(new RegExp(searchfor, 'g'), "changed"); The resulting value for str would be: "Please changed all the changed words in this sentence."; Mon, 28 Dec 2009 22:37:01 GMT /post/javascript-replace-all-with-variable Javascript Transition Effects /africa/gambia/fajara/post/javascript-transition-effects Here are some samples of some basic javascript transition effects.  We are thinking about putting some of these nifty effects into certain areas of .geographical media.  It seems to be rather trendy these days to do so.  I have created the following effects: Fade In, Fade Out, Fly Out and Drop Out, Drop Back The effects are all very easy to do with Javascript adjusting the style properties of the object you wish to have the effect on.  I found the opacity properties here at quirksmode  ... Fri, 25 Jan 2008 01:32:03 GMT /africa/gambia/fajara/post/javascript-transition-effects