I think this is a bug. Would you mind filing a JIRA bug describing what you are seeing?

By the way, I get the same disappearing behavior with this simplified code:

<?xml version="1.0" encoding="UTF-8" ?>
<canvas width="1024" height="768">
        <tabslider width="800" height="600" oninit="selectItemAt(0)">
                <tabelement text="Questions" id="questions">
                                        <combobox oninit="selectItemAt(0)" 
name="listofthings">
                                                <textlistitem text="Item 
1"></textlistitem>
                                                <textlistitem text="Item 
2"></textlistitem>
                                                <textlistitem text="Item 
3"></textlistitem>
                                        </combobox>
                </tabelement>
                <tabelement text="Results">
                        <text>Bob</text>
                        <method event="onselected" reference="this.tab">
                                <![CDATA[
                                        if (this.selected) {
                                                if(questions.listofthings.getValue() == 
"Item 1") {
                                                        
questions.setAttribute("selected","true");
                                                }
                                        }
                                ]]>
                        </method>
                </tabelement>
        </tabslider>
</canvas>

jim

On Nov 23, 2005, at 9:08 AM, Tim Patsch wrote:

Code below has two tabelements in a tabslider control.  On the first
tabelement is a tabs control.

Run the code and click the "Results" tabslider. The code is supposed to force the user back to the first tabslider, "Questions". It does. But the
contents of the first tabslider (a tabs control) disappear.  Why?

Thanks in advance.

<?xml version="1.0" encoding="UTF-8" ?>
<canvas width="1024" height="768">
        <tabslider width="800" height="600" oninit="selectItemAt(0)">
                <tabelement text="Questions" id="questions">
                        <tabs height="500" width="770" name="userinputtabs">
                                <tabpane text="Pane 1"></tabpane>
                                <tabpane text="Pane 2"></tabpane>
                                <tabpane text="Pane 3"></tabpane>
                                <tabpane text="Pane 4" id="panefour">
                                        <combobox oninit="selectItemAt(0)" 
name="listofthings">
                                                <textlistitem text="Item 
1"></textlistitem>
                                                <textlistitem text="Item 
2"></textlistitem>
                                                <textlistitem text="Item 
3"></textlistitem>
                                        </combobox>
                                </tabpane>
                                <tabpane text="Pane 5">
                                                <method event="onselected" 
reference="this.tab">
                                                        <![CDATA[
                                                                if 
(this.selected) {
                                                                        
if(panefour.listofthings.getValue() == "Item 1") {
                                                                                
panefour.setAttribute('selected','true');
                                                                        }
                                                                }
                                                        ]]>
                                                </method>
                                </tabpane>
                        </tabs>
                </tabelement>
                <tabelement text="Results">
                        <text>Bob</text>
                        <method event="onselected" reference="this.tab">
                                <![CDATA[
                                        if (this.selected) {
                                                if(panefour.listofthings.getValue() == 
"Item 1") {
                                                        
questions.setAttribute("selected","true");
                                                        
panefour.setAttribute("selected","true");
                                                        
questions.userinputtabs.setVisible("true");
                                                }
                                        }
                                ]]>
                        </method>
                </tabelement>
        </tabslider>
</canvas>
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.362 / Virus Database: 267.13.3/174 - Release Date: 11/17/2005

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

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

Reply via email to