[Chameleon-dev] [Bug 848] [Chameleon - Documentation] Review JavaScript API document first draft

bugzilla-daemon at maptools.org bugzilla-daemon at maptools.org
Thu Nov 25 20:54:08 EST 2004


http://www.maptools.org/bugzilla/show_bug.cgi?id=848





------- Additional Comments From pspencer at dmsolutions.ca  2004-11-25 20:54 -------
Getting Started:

second example missing quotes around false, should be

<CWC2 TYPE="CWCJSAPI" DEBUG="false"/>

Handling Errors:

first bullet, fourth sentence, 'false' should be in different font (as per
previous sentence).

I think we should add an example of what an error handler would be after the
second bullet:

goCWCJSAPI.RegisterEvent( ERROR_OCCURRED, "MyErrorHandler" );

function MyErrorHandler()
{
    var oErr = goCWCJSAPI.oErrorManager.PopLastError();
    //do something with the error.
}

System Properties:

I just checked and this is not implemented.  This whole section should be
removed (or at least commented out).  The capability to support properties is
there but the actual properties were never added.  With the division between
Chameleon and CWC2, this requires two sections, one general one and one for CWC2.

Other Considerations:

Perhaps should add a note at the end of this section about javascript models:

Also note that this use of JavaScript, while conforming to the standard, is not
compatible with some browsers that have an immature javascript implementation. 
Most notably, Konqueror-based browsers (such as Safari on Mac OSX) are known to
not work well with this code (although this is improving as the browser gets
more mature).  The code is known to work with IE 4+ and most versions of
Netscape/Mozilla after 4.79.  Other browsers are not directly supported but may
work.

I didn't read the object model details in detail (excuse the pun) but they seem
okay for 1.99.  Certainly they were sufficiently documented before and nothing
has changed in the object model.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


More information about the Chameleon-dev mailing list