Category Archives: javascript

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 – REVISED

Driven by the comment of Afraithe I have to apologize about the yesterday’s post. Here’s a much much simpler, cleaner way do add a custom button to TinyMCE. <script type="text/javascript" src="<your installation path>/tiny_mce/tiny_mce.js"></script> <script type="text/javascript"> tinyMCE.init({ mode : "textareas", theme … Continue reading

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

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

Wanted – onfocus/onblur. Why They Don’t Work Always!

On Focus Perhaps you think of onfocus and onblur events as a default behavior existing in any web page. This is not quite true! Onfocurs and onblur are well known in web developing (js) and are fired, of course, when … Continue reading

Posted in javascript, web development | Tagged , , , , , , , , , | Leave a comment

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