// initialize the object var MyOwnClass = {}; // define all the members for the object (function(){ // declare and define a property var foo = “hello world! I’m foo.”; // define a me… more →
:maohao:maohao wrote 2 weeks ago: // initialize the object var MyOwnClass = {}; // define all the members for the object (function(){ … more →
maohao wrote 3 weeks ago: There is no need to block (using braces to wrap) single line statements in a control flow (as-if, do … more →
maohao wrote 2 months ago: The book. Author: Jonathan Stark. Page scaling in iPhone By default Mobile Safari will zoom out for … more →
maohao wrote 6 months ago: I find that MVC is much easier to understand both at the conceptual level and at the implementation … more →
maohao wrote 8 months ago: Although postfix operators are unary operators, they are classified separately from the rest of the … more →
maohao wrote 1 year ago: This is a question from a co-worker of my last job. His is using gcliendGeocoder within a for-loop t … more →
maohao wrote 1 year ago: The following top AS3 classes, in conjunction with HTTPService and mx.rpc.events.ResultEvent classes … more →
maohao wrote 2 years ago: #1. An div rule will sometimes screw up the overlay popup. Suppose you have #container>#mapDiv, t … more →
maohao wrote 2 years ago: Senario: You need to do something like this (only one div gets assigned class “hilit” at … more →
maohao wrote 2 years ago: Senario: I need to instantiate only one Flash object at once in a page, for instance under a row of … more →
maohao wrote 2 years ago: Because google maps control how the overflowed DIV renders in infoWIndow/infoWIndowHtml class by its … more →
maohao wrote 2 years ago: //KLUDGE: in windows XP SP2, if the user clicks the num div first to open an infowindow/infowindowht … more →
maohao wrote 2 years ago: here is how Google video is using Flash Object: Sample code: <embed style="width: 100%; height: 1 … more →
maohao wrote 2 years ago: function appendRandomQuery(){ if(!window.location.search.toString().length){ var ran = Math.round(Ma … more →
maohao wrote 2 years ago: bindAsEventListener(scope, arg1, arg2,…) example (all functions inside body script tags): Even … more →
maohao wrote 2 years ago: I am trying to use google maps openInfoWindowHtml to display data from a CDATA section in a static x … more →
maohao wrote 2 years ago: I was attempting to use Ajax.Requst object in Prototype.js to parse a static xml file, which worked … more →
maohao wrote 2 years ago: The communication between Flash and HTML is manipulated by Javascript/ActionScript. The 101 #1: Java … more →
maohao wrote 3 years ago: optimization (including white spaces) of the “how to eat it” project: before after js: 1 … more →