Bug 615 - [Chameleon]Loading samples generates JS error
: [Chameleon]Loading samples generates JS error
Status: CLOSED INVALID
: Chameleon
Widget
: 1.99
: PC Linux
: P2 normal
: 1.99 beta 3
Assigned To:
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2004-08-09 11:21 by
Modified: 2004-11-11 12:43 (History)


Attachments


Note

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


Description From 2004-08-09 11:21:36
Loading samples generates JS error that stops browser from displaying map.  I
tried loading a few samples without success.  

The following samples generate the first three JS errors:

sample_basic_plainbuttons.phtml, sample_basic.phtml,
sample_basic_buttonizer.phtml, sample_enhanced_themelegend.phtml,
sample_basic_jsapi.phtml

The following samples generate the first three and the forth JS errors:

sample_enhanced.phtml,  sample_bilingual.phtml, sample_enhanced_jsapi.phtml,
sample_ogc.phtml, sample_other.phtml

The following samples generate the first three and the fifth JS errors:

sample_roi.phtml

Fedora Core 2
Chameleon (php_utils) cvs 20040809
Mozilla 1.6
-------------------------
JS error:

Error: CWCDHTML_GetImage is not defined
Source File: http://192.168.4.100/nsavard/chameleon_cvs/sample.js
Line: 75

Error: MapWidgetInitVariables is not defined
Source File:
http://192.168.4.100/nsavard/chameleon_cvs/sample_basic_plainbuttons.phtml
Line: 737

Error: MapLayerDivImgOnLoad is not defined
Source File:
http://192.168.4.100/nsavard/chameleon_cvs/sample_basic_plainbuttons.phtml
Line: 401

Error: gMapWhspc is not defined
Source File: http://192.168.4.100/nsavard/chameleon_cvs/sample_enhanced.phtml
Line: 61

Error: Line is not defined
Source File: http://192.168.4.100/nsavard/chameleon_cvs/sample_roi.phtml
Line: 93
------- Comment #1 From 2004-08-10 16:17:39 -------
Changed target to 1.99 Beta 3.
------- Comment #2 From 2004-10-07 13:07:30 -------
cannot reproduce.
------- Comment #3 From 2004-10-07 19:57:50 -------
Is it better to let this bug marked as "New" instead until the reporter verify
it and mark it as "Invalid"?  Because this bug (if this is a bug) could be lost.
------- Comment #4 From 2004-10-08 09:32:50 -------
I think the bug is invalid, at least for the current cvs version ... this should
then be verified during testing and either re-opened or a new bug created if you
discover that I am lying :>  But as far as I am concerned, the bug is no longer
valid.
------- Comment #5 From 2004-10-26 08:48:15 -------
no js error during testing on sample application 

verified that this bug is invalid using beta 3 20041022 on windows
------- Comment #6 From 2004-10-27 12:09:07 -------
I only a JS error with these two templates:  sample_basic_jsapi.phtml and
sample_enhanced_jsapi.phtml.  Is is related to the JSAPI bug or is it a
synchronisation JS functions loading you already talk about Paul?


-----------
JS error:

Error: goCWCJSAPI is not defined
Source File: http://server/chameleon_beta//widgets/MapDHTMLWidget/MapDHTMLWidget.js
Line: 641
------- Comment #7 From 2004-11-01 16:02:28 -------
Paul, I think this bug is waiting for an answer to Norms question inorder for it
to be closed.
------- Comment #8 From 2004-11-01 19:21:21 -------
Norm, do you still get these errors?  I just tried this on my linux and I don't
ge them.  Perhaps they were fixed as part of making the JSAPI work?
------- Comment #9 From 2004-11-02 11:58:28 -------
I'm still having these messages.  I got 20 copies of this message with the
"sample_basic_jsapi.phtml" and one with "sample_enhanced_jsapi.phtml".
------- Comment #10 From 2004-11-07 13:38:15 -------
Who set this bug to Verified? Norms comment #9 suggests that there is still a
problem. Norm will have to verify that this is still a problem.
------- Comment #11 From 2004-11-07 15:29:55 -------
oh, I can say that there is still no problem on windows. using beta 3 20041105
------- Comment #12 From 2004-11-08 08:40:59 -------
This problem still exist on Fedora Core 2.  I will ask Julien to help me out
with this.
------- Comment #13 From 2004-11-08 10:16:10 -------
Chris, in comment #9 you asked who verified this bug.  If you click the link
'View Bug Activity' just under the commit button, the answer will be revealed,
and it was YOU!  ;)

If the problem still exists for Norm after getting assistance from Julien, I
suggest reopening it with a target milestone of RC1 (since it no longer affects
the beta 3 release)
------- Comment #14 From 2004-11-08 11:05:47 -------
so that is what that link is for. :) I guess I verified it as windows fixed,
while norm still had his problems on Linux. 

------- Comment #15 From 2004-11-10 17:13:23 -------
The error described in comment #6 arises because the "cwcjsapi" widget is not
loaded and the next widget ("<cwc2 type="SharedResource" name="CWCJSAPI"/>")
 in the sample is referring to this widget.

The "cwcjsapi" is not loaded because of its maturity level "MATURITY_ALPHA".
------- Comment #16 From 2004-11-10 20:46:55 -------
I have changed the phtml files for those apps to lower the maturity level.  Does
this completely fix the issue?
------- Comment #17 From 2004-11-11 09:33:39 -------
I think it is an acceptable fixed.  Question:  (Maybe I'm pushing too far)Is
there a way to send an error to the ErrorReport widget when a widget need
another widget and this widget is not there?
------- Comment #18 From 2004-11-11 09:56:23 -------
If I understand the question correctly, I don't think there is a mechanism.  I
think a good fix in this case would be to remove the requirement for an explicit
SharedResource named CWCJSAPI and have the CWCJSAPI widget create the
sharedresource.  But then again, I would like to review the whole concept of
CWCJSAPI and consider changes that would make this unnecessary ...

CWCJSAPI is a very unique case, there are very few other instances like it.  I
think we can safely ignore this problem and deal with any issues that arise on a
case-by-case basis.
------- Comment #19 From 2004-11-11 12:18:03 -------
This is an invalid bug.
------- Comment #20 From 2004-11-11 12:36:10 -------
I updated from CVS Nov 11 09:34.  The error is still appearing.  I guess the
change is not committed.
------- Comment #21 From 2004-11-11 12:43:31 -------
Dismiss comment #20.