My Blog

All about my activities, Ideas and everything.

Month: July, 2009

Tutorial : How Java and Javascript Communication Works

http://java.sun.com/products/plugin/1.3/docs/jsobject.html

The difference between apply and call method in javascript

Well, I have just an issue from my friend who have a problem with arguments passed in the extended method. This topic I will show the difference between apply and call method. First, what is call and apply method. This is a hard question for me to explain this kind of question in English. Haha. [...]

Tutorial Javascript : Stealing methods from Other Objects

123456789101112131415161718192021function copyFromArray() {     document.write( "Before Slicing : " );     printArray( arguments );     document.write("<br/>");         //steal slice from Array.prototype     var slice = Array.prototype.slice;     var slicedArguments = slice.call( arguments, 1 );     document.write( "After Slicing : " + slicedArguments); } function printArray( arry [...]