[Laszlo-user] alert gets immediate onresult??

Geoff Crawford geoff at innov8cs.com
Sun Jul 1 12:02:46 PDT 2007


Flash environment, Laszslo 4.0.2

I have a simple <alert> with a <method event="onresult">
in it.  I thought that the docs imply it's the only event
available to an alert, and it's supposed to fire when the
user presses the button.  However, I get that event firing
immediately on an open() of the alert.  That's a big problem
because my code in the method is switching to a different
tabpane.  It means the tab pane switch hides the modal
alert so you can't get to hit the OK so you're basically
stuck.  Is that a bug?

My alert looks something like the folowing:

<alert name="saveAlert" >
         <method event="onresult">
                     parent.subviews[mainTab].setAttribute('selected',true);
         </method>

         Save is Complete!

</alert>



=======================================================================
Geoff Crawford                          Phone:         (973) 361 - 4224
Innov8 Computer Solutions, LLC          FAX:           (973) 537 - 6946
711 Route 10 East, Suite 204            Email:       geoff at innov8cs.com
Randolph NJ 07869                       Web: http://www.processware.biz

                  ProcessWare ERP for the Chemical Industry




More information about the Laszlo-user mailing list