Random Musing

Something I want to get off my chest.

Sunday, March 11, 2007

Document Object Model in JavaScript

The document object model, or DOM, refers to the Web page components, or objects, that you can access and manipulate by using JavaScript. Examples of objects that you can work with in JavaScript include the window that a Web page appears in, the Web page itself, embedded images and text, and much much more.

Because JavaScript is object-based, when you program in JavaScript you get to take advantage of a predefined object model. Ojbect-base programming laguages package, or encapsulate, date and functionality into useful units called ojbects. (Collectively, the objects that you work with in an object-based programming language are called the object model.) Encapsulation is a good thing, because it hides nitty-gritty programming details -- allowing you the programmer, to write code with least amount of hassle possible.

The DOM performs task by describing
* All the objects that go into making up a Web page, such as forms, links, images, buttons, and text.
* The descriptive properties associated with each of the DOM objects. For example, image object can be associated with specific properties describing its height and width.
* The behaviors, or methods, associated with each of the DOM objects. For example, the window object supports a method called alert() that allows you to display an alert message on a Web page.
* The special built-in methods, called event handlers, associated with automatic and user-initiated events. For example, loading a Web page into a browser is considered an event; so is clicking a button. The event handler that you use to trigger some JavaScript code when these events occur are called onLoad and onClick, respectively.

Most of the objects that you work with in JavaScript fall into the following four categories:
1) Objects defined by using HTML tags. This includes documents, links, applets, text fields, windows, and so on.
2) Objects defined automatically by Web browsers. One example is the navigator object, which, despite its name, holds configuration and version information about whichever browser is currently in use, even if that browser happens to be IE.
3) Objects that are built into JavaScript, such as Date and Number.
4) Objects you yourself have created by using the JavaScript new operator.

Tuesday, March 06, 2007

WordPress Plugins

WordPress plugin for Yahoo browser-based auth

http://gallery.yahoo.com/apps/2188



William Siegrist's WordPress Authentication Plugin

http://www.williamsiegrist.net/?p=12

PlaNetwork's WordPress plugin
http://www.planetwork.net/downloads/

WordPress Plugin database
http://wp-plugins.net/plugin/jcp_authmodule/


http://dev.webadmin.ufl.edu/~dwc/2005/03/02/authentication-plugins/

Aaron's thoughts: WordPress authentication plugin
http://xavisys.com/blog/2006/12/18/wordpress-authentication-plugin/

WordPress plugin using Drupal CMS software
http://weblogtoolscollection.com/pluginblog/2005/05/09/distributed-authentication-plugin/

WordPress Plugin: LDAP Authentication
http://www.bloggingpro.com/archives/2005/05/30/wordpress-plugin-ldap-authentication/


WordPress OpenID Plugin
http://verselogic.net/projects/wordpress/wordpress-openid-plugin/

Create OpenID from idproxy.net

It was really easy actually.

Using my yahoo account, actually it was DSP account xxxx@sbcglobal.net,
then it went thru smoothly.

So I create my OpenID over there as http://larryzhou.idproxy.net

Monday, March 05, 2007

OpenID is a thing to stay

http://openid.net/

OpenID is an open, decentralized, free framework for user-centric digital identity.

Solving the OpenID phishing problem
http://simonwillison.net/2007/Jan/19/phishing/


idproxy.net: Use your Yahoo! account as an OpenID
http://simonwillison.net/2007/Jan/27/idproxy/

AOL and OpenID: Where we are
http://journals.aol.com/panzerjohn/abstractioneer/entries/2007/02/15/aol-and-openid-where-we-are/1406

Permalink Redirect WordPress plugin
http://fucoder.com/code/permalink-redirect/


OpenID for WordPress
http://blog.scatmania.org/archives/2005/08/06/openid-for-wordpress/