Archive for the ‘Web Programming’ Category

Javascript – Void operator

No Comments

Void Operator

blocks returned values
(void expression/function call)
When either an HTML A tag’s href attribute or onclick event handler contain a JavaScript expression or function call, the void operator is placed before them in order to neutralize a value they may return. The void operator assures that the value will not be assigned to the href attribute.

If this step is not taken, the page content is replaced with that value or sometimes with the client’s hard drive directory listing. The most common place this “gotcha” shows up is when the window.open() method is placed in an A tag as the href’s value:
Open Sub Window
Or Here…
do something when link is clicked

Void Operator fixes the above errors just by showing up:
Open Sub Window
do something when link is clicked
The “(0)” following the void operator is sometimes used as a place holder for the returned value, but doesn’t necessarily have to be used, but I’ve included it because you will probably see it used on occasion.

Ongki signed

Posted under PHP, Tips - do you know?, Web Programming

OpenLaszlo – towards Web 2.0

No Comments

XML + Javascript —–> Flash

http://www.openlaszlo.org/

Can be as cool as this

Ongki signed

Posted under Web Programming

The Dojo Toolkit

No Comments

Really cool! Ease of use and powerful. Will be my favorite playground starting from here.

Long life Dojo !

Ongki signed

Posted under Web Programming