Category Archives: micro tutorial

javascript: get function caller

Who calls me? If that’s the question a JavaScript function is asking for, and respectively you are, there is one simple way to find the answer. Why would I need this? Well let assume I’ve one function called func1, called … Continue reading

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

jQuery datepicker persist defaultDate

Datepicker from jQuery You know how the jQuery UI extensions give a useful functionality for the javascript developers. The datepicker is a useful calendar tool that comes with variaty of functions. How to setup the selected / defaultDate It’s as … Continue reading

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

ExternalInterface from JavaScript to IE/Firefox

ExternalInterface communication with JavaScript The most simple way to describe the case is as if you have the ExternalInterface addCallback in the Flex application like that: flex.mxml ExternalInterface.addCallback(“jsFunc”, flexFunc); public flexFunc() : void { … } and in the javascript … Continue reading

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

jQuery check for element visibility

What if the element exists in the DOM That was described in my recent post and it describes the case when you have a particular element in the DOM tree, or if that element does not exists. example: <div id="holder"> … Continue reading

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

JavaScript closures in brief

What’s a closure Well every javascript programer knows that a variable defined in javascript file with the var declaration is global into all javascript code. var a = 12; console.log(a); that code prints 12 into the console. Note: console object … Continue reading

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