Hello,
      I one of our application , We have a requirement for setting initial focus to a edittext field when the laszlo page is loaded.
       I embedded the laszlo file into an html as below:
             lzEmbed({url: 'sample.lzx?lzt=swf', bgcolor: '#ffffff', width: '100%', height: '100%'});
             setTimeout("window.focus();document.getElementById('lzapp').focus();", 500); 
       
 in oninit( ) method of sample.lzx, i  wrote the following code like this

           <method event="oninit">

                LzTimer.resetTimer(new LzDelegate(this, 'setInitialfocus'), 500);

            </method>

           <method name="setInitialfocus">

               LzFocus.setFocus(name1Txt);

            </method>

            <view id="mainview>

                <edittext id="name1Txt"/>

                .......

 

               

            </view>

    where name1Txt is the id of the edittext Field to which focus is to be set.

     I am able to set The focus correctly in Internet Explorer, But not able to do so in Mozilla Firefox.

    Does any one faced similar type of problem OR have an idea abt how to do that in Mozilla Firefox.

    Does laszlo have any limitations for Mozilla Firefox.?   

    Please help me

   

thanks in advance

manik

 

_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user

Reply via email to