Bug 765 - [Chameleon - Widget] CWCJSAPI failure
: [Chameleon - Widget] CWCJSAPI failure
Status: VERIFIED FIXED
: Chameleon
Widget
: 1.99
: PC Windows XP
: P1 blocker
: 2.0 RC 1
Assigned To:
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2004-10-25 09:52 by
Modified: 2004-11-08 14:15 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2004-10-25 09:52:50
I made a change in the core of Chameleon that requires all widgets to call
InitDefaults() in the base class.  The CWCJSAPI widget bypasses the normal
processing of widgets by calling UpdateMap.php to load a single widget to handle
processing.  Unfortunately, this file was not updated after this change, so no
widgets will currently work in JSAPI mode.
------- Comment #1 From 2004-10-25 10:42:17 -------
Changed target to 1.99 Beta 3.
------- Comment #2 From 2004-10-25 12:58:02 -------
fixed in CVS.
------- Comment #3 From 2004-11-01 16:36:09 -------
Question how can this changed be verified?

Is it enough to use the JSAPI sample app:
http://localhost/chameleon/samples/sample_basic_jsapi.phtml

When loading app and  trying to use the nav tools the following observations are
made: 

1) No buttons are working.
2) Java Script Consol error(s):

Error: goCWCJSAPI is not defined
Source File: http://localhost/chameleon//widgets/MapDHTMLWidget/MapDHTMLWidget.js
Line: 301

Error: goCWCJSAPI is not defined
Source File: http://localhost/chameleon//widgets/MapDHTMLWidget/MapDHTMLWidget.js
Line: 313

Should there be awaring to the users that this is deliberate error?
------- Comment #4 From 2004-11-01 19:27:38 -------
there is a typo in the variable names in MapDHTMLWidget.js that could cause this
problem, I have committed a fix for this.  Requires retesting with new version
of MapDHTMLWidget.js
------- Comment #5 From 2004-11-07 13:46:28 -------
Verified on windows  beta 3 20041105

no JS errors in console.