Tag Archives: javascript

A JavaScript Trick You Should Know

JavaScript Strings You should know that in JavaScript you cannot simply write a multilined code chunk, i.e. something like this: var str = ‘hello world’; This will result in an error, which can be a problem when you deal with … Continue reading

Posted in javascript, micro tutorial, PHP | Tagged , , , , , , , , , , , , , , , | 4 Comments

Object Oriented JavaScript: Inheritance

Objects and JavaScript JavaScript, being a functional language, differs from most of the procedural/object oriented languages we know. The object oriented approach in JavaScript is rather strange. However there is much power in making objects! The syntax is really odd … Continue reading

Posted in web development | Tagged , , , , , , , , , , , , , , , , , , , | 12 Comments

jQuery.unbind()

Binding Problems Typically in jQuery when you bind an HTML element with some event this event is fired every time the user (client) triggers it. Thus when you’ve a click event attached on a button you can click it as … Continue reading

Posted in javascript, micro tutorial | Tagged , , , , , , , , , , , , , , , , , , | Leave a comment

Adding a Custom Button to TinyMCE

TinyMCE First thing to say TinyMCE is a very popular WYSIWYG online based editor. It’s very widely used in the web, as may already know it it’s part of the default WordPress installation. Out of the web, of course, there … Continue reading

Posted in javascript, micro tutorial | Tagged , , , , , , , , , , , , , , , | 4 Comments

JavaScript Objects Coding Style Reviewed

JS Objects Once I posted about JavaScript object coding style. Back than I made the analogy with PHP array coding style. In breve it’s useful to format the arrays in PHP simply like that: $data = array( ‘key1′ => ‘value1′, … Continue reading

Posted in javascript, micro tutorial, web development | Tagged , , , , , , , , , , | 4 Comments