‘Javascript’ Archive

Using WYISIWYG editors for content management February 14, 2013 No Comments

WYSIWYG editor is easy way to give clients to edit content on dynamic sites. But then another problem appears – how to explain clients that they need to fit styles of content they create in editor to the current style of the site. How to explain that Sans Comic isn’t very nice choose if site […]


Bug with Broken Ordered list in IE9 June 11, 2011 9 Comments

Recently I’ve been working with ordered lists. And found strange behavior in IE9 when one ordered list is hiding and new one is showing – instead of usual order 1,2,3.. it showed all zeros. And it actually doesn’t matter what list style type you choose – decimal, lower alpha or other. Let me show you […]


The array declaration difference between Firefox and IE JavaScript interpreter May 21, 2010 2 Comments

Found interesting difference in array declaration between FF and IE. For example, if leave comma (,) after all elements in array there will be different size of array as a result: var arr = [1,2,3,]; document.write(arr.length); As a result in Firefox and Safari it will write “3” but in IE it will be “4”.  


Using arrays in form element names July 27, 2009 1 Comment

Sometimes there is variable number of similar elements on a form. For example, phone numbers. To iterate all filled values on the server it will be nice to use arrays. And form element naming allow it: … Using PHP it’s easy to iterate through those values now: foreach ($_POST[‘phone’] as phone) { // do something […]