Re: v0.84: alert bug

Tristan (tristan@creative.net)
Sun, 09 Feb 1997 16:26:24 -0800

To subscribers of the xforms list from Tristan <tristan@creative.net> :

Dr. T.C. Zhao wrote:
>
> To subscribers of the xforms list from "Dr. T.C. Zhao" <zhao@bragg.phys.uwm.edu> :
>
> From: Tristan <tristan@creative.net>
>
> >When fl_show_alert() is called several times with different
> >parameters and the alert windows was not closed by the
> >user between each call, then the alert windows gets
> >garbled (the text seems to be a supperposition of the
> >strings of the previous calls.
>
> I haven't seen this before, but then again since
> fl_show_alert() is (kind of) modal, it is not
> usually used this way. I will try to confirm/fix this.

It is true that fl_show_alert() is (kind of) modal, but calling
fl_show_alert() does not "block" until the user clicks
OK in the alert window.

My application therefore blindly calls fl_show_alert()
each time there is an alert message to show. If the
previous alert window was not yet closed by the the
user, then what should happen ?

Netscape uses similar Alert windows, and they
stack-up (i.e. if the previous Alert window was
not closed by the user, then another Alert window
appears on top of the previous one.

I was expecting a similar behavior with Xforms Alert
windows, but instead there seems to be only one Alert
window, and if fl_show_alert() is called again while it
is still opened, it just
supperimpose the new text in the old Alert window, making
it totally unreadable.

Alternate behaviors could be:

1) replace the old alert window by the new one (I don't
like that, because in some cases an important message in
the first alert window may disapear before the user could read
it and acknowledge).

2) stack-up alert windows (like Netscape does)

3) fl_show_alert() would block if the previous alert window
was not closed by the user.

(3) is better than (1), but I would prefer (2).

-- 
Regards, -- Tristan Savatier (mailto:tristan@mpegtv.com)
           
MpegTV website:   /cgi-bin/exit-to?http://www.mpegtv.com
MPEG.ORG website: http://www.mpeg.org
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
Xforms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/xforms-archive/