Lost your password?

Blogs about: Javascriptajax

Featured Blog

JavaScript 101: Creating a custom object

maohao wrote 2 weeks ago: // initialize the object var MyOwnClass = {}; // define all the members for the object (function(){ … more →

Tags: javascript

Block statements in control flow constructs

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 →

Tags: ActionScript, Actionscript 3, C#, javascript, PHP / MySQL

Notes for Building iPhone With HTML, CSS and JavaScript by Jonathan Stark

maohao wrote 2 months ago: The book. Author: Jonathan Stark. Page scaling in iPhone By default Mobile Safari will zoom out for … more →

Tags: CSS, HTML, iPhone, javascript

MVC revisit: Take two

maohao wrote 6 months ago: I find that MVC is much easier to understand both at the conceptual level and at the implementation … more →

Tags: ActionScript, Actionscript 3, Adobe Air, Design Patterns, Flash, Flex, user interface, xml, model view controller

Postfix operators: x++

maohao wrote 8 months ago: Although postfix operators are unary operators, they are classified separately from the rest of the … more →

Tags: ActionScript, Actionscript 3, C#, javascript, PHP / MySQL

click on marker always show the last entry of data

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 →

Tags: ActionScript, javascript

E4X in ActionScript 3 and Flex 3

maohao wrote 1 year ago: The following top AS3 classes, in conjunction with HTTPService and mx.rpc.events.ResultEvent classes … more →

Tags: Actionscript 3, Flex, xml

google map css trap 101

maohao wrote 2 years ago: #1. An div rule will sometimes screw up the overlay popup. Suppose you have #container>#mapDiv, t … more →

Tags: CSS, GIS, javascript

Assign additional class to a div using Prototype 1.5/61 comment

maohao wrote 2 years ago: Senario: You need to do something like this (only one div gets assigned class “hilit” at … more →

Tags: javascript

Instantiate one Flash object at once in a page

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 →

Tags: javascript

Google map infoWindow/infoWindowHtml doesn't render background

maohao wrote 2 years ago: Because google maps control how the overflowed DIV renders in infoWIndow/infoWIndowHtml class by its … more →

Tags: GIS, javascript, CSS

max-height/overflow for google map infowindow

maohao wrote 2 years ago: //KLUDGE: in windows XP SP2, if the user clicks the num div first to open an infowindow/infowindowht … more →

Tags: GIS, javascript

lightweight flash object

maohao wrote 2 years ago: here is how Google video is using Flash Object: Sample code: <embed style="width: 100%; height: 1 … more →

Tags: Flash, javascript

append a random number as the query string1 comment

maohao wrote 2 years ago: function appendRandomQuery(){ if(!window.location.search.toString().length){ var ran = Math.round(Ma … more →

Tags: javascript

pass additional parameters to event handler using Prototype.js2 comments

maohao wrote 2 years ago: bindAsEventListener(scope, arg1, arg2,…) example (all functions inside body script tags): Even … more →

parse CDATA as DOM (with html tags parsed)

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 →

Tags: javascript

responseXML not working in IE5 comments

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 →

Tags: javascript

javascript to swf Beyond 1011 comment

maohao wrote 2 years ago: The communication between Flash and HTML is manipulated by Javascript/ActionScript. The 101 #1: Java … more →

Tags: javascript, ActionScript

size matters!

maohao wrote 3 years ago: optimization (including white spaces) of the “how to eat it” project: before after js: 1 … more →

Tags: javascript


Related Tags
All →

Follow this tag via RSS