[Chameleon] goCWCJSAPI is undefined
Bart van den Eijnden
BEN at Syncera-ITSolutions.NL
Tue May 17 03:50:08 EDT 2005
Hi,
did you set the maturity level in the index.phtml file of your application?
...
$oApp->mnMinimumMaturityLevel = MATURITY_ALPHA;
...
$oApp->CWCExecute();
?
I think the case of the widget type is also case-sensitive, this works for me:
<cwc2 type="cwcjsapi" debug="false"/>
<cwc2 type="SharedResource" name="CWCJSAPI"/>
Best regards,
Bart
Bart van den Eijnden
Syncera-ITSolutions
Postbus 270
2600 AG DELFT
tel.nr.: 015-7512436
email: BEN at Syncera-ITSolutions.nl
>>> <rsosnowski at cableone.net> 05/17/05 04:03am >>>
Hello,
Trying to get chameleon JSAPI to work. Have MS4W loaded (ms4w_1.0.3.zip), using MS XP, MS IE 6.0, Apache 2.x; Chameleon 2.0.1 (chameleon_ms4w-2.0.1.zip).
THE PROBLEM:
1) Everytime I try to run my application (http://localhost/myapp/test.php) I get the following error:
'goCWCJSAPI' is undefined.
I USE THE FOLLOWING TO ACCESS THIS OBJECT:
<!-- ALLOWS JAVASCRIPT API (JSAPI) TO BE USED IN THIS APPLICATION -->
<CWC2 TYPE="SharedResource" NAME="CWCJSAPI" />
<!-- INCLUDE STATEMENT FOR THE cwcjsapi.js FILE AND ALL ITS FUNCTIONALITY -->
<CWC2 TYPE="CWCJSAPI" DEBUG="false"/>
2) ALSO - curious as to where the image file is stored for the maps; can the map image be accessed through a URL pointing to a png, gif, or other formatted file.
Thanks, Rob
More information about the Chameleon
mailing list