Dismiss
InnovationQ will be updated on Sunday, Oct. 22, from 10am ET - noon. You may experience brief service interruptions during that time.
Browse Prior Art Database

Methods for realizing XML programming model for rich internet application

IP.com Disclosure Number: IPCOM000190382D
Original Publication Date: 2009-Nov-26
Included in the Prior Art Database: 2009-Nov-26
Document File: 3 page(s) / 144K

Publishing Venue

IBM

Abstract

Today, rich internet application (e.g. DHTML, Flash*) is very popular on WWW contents. DTHML application is widely spread because most recent web browsers support DOM API. When web developers create complex applications, JavaScript* codes become huge, and it becomes difficult to read and reuse existing codes. To solve this problem, each browser support the framework to extends XML elements. Writing web applications by XML makes codes easy to read and reuse.a However, existing frameworks to extend XML elements are different on each browser. Web developers have to write XML extension codes for each browser. This is why supporting huge XML spec on each browser needs much development costs. Disclosure is a system for solving this problem by providing the XML extension framework that is independent on web browsers. *Flash is trademark of Adobe Systems Incorporated *JavaScript is a trademark of Sun Microsystems

This text was extracted from a PDF file.
At least one non-text object (such as an image or picture) has been suppressed.
This is the abbreviated version, containing approximately 56% of the total text.

Page 1 of 3

Methods for realizing XML programming model for rich internet application

This system is implemented by using ActionScript* (later than version 3). Extended XML elements are implemented by extending XML classes in ActionScript. XML class in ActionScript support E4X API to handle XML data.

                            ctionScript can communicate with JavaScript code by using External Interface. By using External Interface, it is possible to implement object bridge between JavaScript and ActionScript. By extending this bridge, JavaScript code can access XML element defined in ActionScript. In addition to this, although XML class in ActionScript does not fire event when it is modified, modification of XML class can be detected by extending

A

 ctionScript-JavaScript bridge is composed by bridge code in ActionScript and bridge code in JavaScript code. By loading these two components in HTML web page, the bridge is initialized in the process of Fig. 1. Class names defined in ActionScript are exposed to JavaScript code as properties of JavaScript bridge object.

A

ActionScript-JavaScript bridge.

Fig. 1 Initialization of ActionScript -JavaScript bridge

Example JavaScript code to create ActionScript class var cshape = new bridge.Shape();

By executing this code, "Shape" class is initialized, and functions defined in "Shape" are registered as properties of the variable "cshape" by ActionScript bridge (See Fig.2).

1

[This page contains 1 picture or other non-text object]

Page 2 of 3

Fig. 2 Initialization of ActionScript object through bridge

Calling "draw...