[Chameleon-dev] [Bug 678] New: [Chameleon-Widget] unnecessary reload when page resized

bugzilla-daemon at www.maptools.org bugzilla-daemon at www.maptools.org
Mon Sep 27 16:01:28 EDT 2004


           Summary: [Chameleon-Widget] unnecessary reload when page resized
           Product: Chameleon
           Version: 1.99
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Widget
        AssignedTo: chameleon-dev at lists.maptools.org
        ReportedBy: pspencer at dmsolutions.ca

I did some testing.

It seems function MapWhandleresize() in MapDHTMLWidget.js is the
culprit.  It actually calls for a reload.  I changed the code in my

The function MapWPositionMapDHTML which was collecting only IE browsers
is actually also testing for Nav6 browsers.  I changed the code in
MapWhandleresize to test for Nav4 and then the other two (Nav6 and IE)
are running the function.

So it's now:
function MapWhandleresize()
    if (CWCIsNav4)
    else if (CWCIsIE || CWCIsNav6)

Similar things are happening in the KeyMapDHTML widget, but I'm not
using it to test.  I did a search on location.reload for all files in

Now I'm not re-posting in Firefox, or Netscape 7.  But am in Netscape 4.
Although the site looks so bad in Netscape 4 I think it should abandoned
with an error message (IMHO).


-----Original Message-----
From: Paul Spencer [mailto:pagameba at magma.ca] 
Sent: September 27, 2004 3:22 PM
To: Godwin, Elizabeth
Cc: pspencer at dmsolutions.ca; chameleon at lists.maptools.org
Subject: Re: [Chameleon] browser auto-refresh?

yes ... I actually don't know why it re-submits the whole page ... if 
you figure it out, I'd love to know


Godwin, Elizabeth wrote:

>> Hm... that doesn't explain to me while other apps that post don't 
>> exhibit the same behaviour.  But I'll continue googling.  No luck so 
>> far.
>> When I say refresh... I don't mean just what's loaded in the 
>> browser... it's re-requesting from the server.  Which is something the

>> others aren't doing.  Speed might have affected me noticing with other

>> applications, but I would have noticed the POST error.
>> Liz
>> -----Original Message-----
>> From: Paul Spencer [mailto:pagameba at magma.ca]
>> Sent: September 27, 2004 2:51 PM
>> To: Godwin, Elizabeth
>> Cc: chameleon at lists.maptools.org
>> Subject: Re: [Chameleon] browser auto-refresh?
>> Liz,
>> this is the way mozilla works.  You can work around it by attaching to
>> the onresize event of the body:
>> <body onresize="return false;">
>> or something like that ... a quick google should get you close ... as 
>> I
>> am on dialup right now, a 'quick' google is impossible so I'll leave


>> to you  ;) 
>> Cheers
>> Paul
>> Godwin, Elizabeth wrote:
>>>>Hi there,
>>>>I've noticed an odd phenomenon while working with Chameleon.  It seems

>>>>that in all mozilla variants, the application will refresh itself when
>>>>you change the window in some way.  Now..  my first thought was the
>> code
>>>>added to the samples template I've based my app on that included code
>>>>telling Netscape browsers to reload when there was a resize.  EXCEPT 
>>>>that I've removed this code.  
>>>>I went poking and found instances of this code in a couple js files.
>>>>My question is, is it necessary for all mozilla browsers to do this 
>>>>reloading?  I thought it was only for version 4 browsers.
>>>>It's not usually an issue, but I came across the behaviour while
>>>>in Firefox, having multiple versions of the app open.  If I resize
>> after
>>>>I've submitted a request, I get POST-ing error messages and such.
>>>>Liz Godwin
>>>>Chameleon mailing list
>>>>Chameleon at lists.maptools.org

-- ----------------------------------------------------------------- |Paul
Spencer pspencer at dmsolutions.ca |
|Applications & Software Development | |DM Solutions Group Inc

------- 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