Bugs item #532273, was opened at 2002-03-19 16:45
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105757&aid=532273&group_id=5757

Category: DynAPI 2 Browser-Specific
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Todd Wesslen (wessto)
Assigned to: Nobody/Anonymous (nobody)
Summary: NS6 'undefined' setWidth / setHeight

Initial Comment:
I get the following error in Netscape 6.2.1
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; 
rv:0.9.4) Gecko/20011128 Netscape6/6.2.1

----------
DynAPI reported an error
Error in file: 'undefined'
Line number: undefined.
Message: [object Event]
----------

This occurs in a javascript alert box.

The code I think is causing this problem is listed 
below.  I read something about the setWidth problem in 
bug 454540.  So I can only assume that this is what is 
happening with my code.

var workspaceWidth = map.getWidth() + elementSpacing + 
nav.getWidth() + 8;
        var workspaceHeight = candidates.getHeight() + 
map.getHeight() + elementSpacing + 50;

        var backgroundWidth = workspaceWidth + 
(2*borderWidth);
        var backgroundHeight = workspaceHeight + 
(2*borderWidth);
        
        workspace.setSize
(workspaceWidth,workspaceHeight);
        background.setSize
(backgroundWidth,backgroundHeight);

        var candidatesX = (workspaceWidth - 
candidates.getWidth());
            candidatesX = candidatesX / 2;

        candidates.moveTo(candidatesX,borderWidth);

        var pointFormX = 50;
        var pointFormY = mapY + map.getHeight() + 
elementSpacing - 5;
        
        pointForm.moveTo(pointFormX,pointFormY);
        pointForm.setWidth(500);

        // Set up event handler for map layer...
        mapListener=new EventListener(map)
                
         mapListener.onmousedown=function(e) {


            // Map
            if(pointForm.doc.pointSelection.move
[0].checked) {
                
pointForm.doc.pointSelection.choice.value = <%
=floodSession.getChoice()%>;
                
pointForm.doc.pointSelection.customx.value = currentX;
                
pointForm.doc.pointSelection.customy.value = currentY;
                pointForm.doc.pointSelection.submit();
            }

            // Icon
            else if(pointForm.doc.pointSelection.move
[1].checked) {
                // Set the choice to be one past the 
location list.
                <% floodSession.setChoice
(floodSession.getGeocodeLocationInfo
().candidates.length); %>
                
pointForm.doc.pointSelection.choice.value = <%
=floodSession.getChoice()%>;
                
pointForm.doc.pointSelection.customx.value = currentX;
                
pointForm.doc.pointSelection.customy.value = currentY;
                pointForm.doc.pointSelection.submit();
            }

            // Both
            else if(pointForm.doc.pointSelection.move
[2].checked) {
                <% floodSession.setChoice
(floodSession.getGeocodeLocationInfo
().candidates.length); %>
                
pointForm.doc.pointSelection.choice.value = <%
=floodSession.getChoice()%>;
                
pointForm.doc.pointSelection.customx.value = currentX;
                
pointForm.doc.pointSelection.customy.value = currentY;
                pointForm.doc.pointSelection.submit();
            }


        }

        mapListener.onmousemove=function(e) {
            var mapX = pixelX * (e.getX()-1) + minx;
            var mapY = pixelY * (300-e.getY()-1) + 
miny;
            currentX = Math.round
(mapX*1000000)/1000000;
            currentY = Math.round
(mapY*1000000)/1000000;

            //currentX = mapX;
            //currentY = mapY;

            target = mapPos;
            var message = '<TABLE cellspacing="0" 
cellpadding="0" border="0">';
                message +='<tr><td 
align="right">&nbsp;Lat:</td><td align="right">' + 
currentX + '</td></tr>';
                message +='<tr><td 
align="right">&nbsp;Lon:</td><td align="right">' + 
currentY + '</td></tr>';
                message +='</TABLE>';
            target.setVisible(true);
            target.setHTML(message);
        }

        mapListener.onmouseout=function(e) {
            target = mapPos;
            target.setVisible(false);
        }

        map.addEventListener(mapListener)

----------------------------------------------------------------------

>Comment By: Todd Wesslen (wessto)
Date: 2002-03-20 13:47

Message:
Logged In: YES 
user_id=97581

It appears that this is related to bug 516375.  I noticed 
that when I comment out all the references to the nav 
DynLayer, my errors go away.  Can the usemap attribute of 
an image not be used with Netscape 6?

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105757&aid=532273&group_id=5757

_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://www.mail-archive.com/dynapi-dev@lists.sourceforge.net/

Reply via email to