Author: lou
Date: 2007-11-06 05:59:47 -0800 (Tue, 06 Nov 2007)
New Revision: 7152

Modified:
   openlaszlo/trunk/docs/src/developers/tutorials/programs/art_assets-$8.lzx
   openlaszlo/trunk/docs/src/developers/tutorials/programs/calculator-$10.lzx
   openlaszlo/trunk/docs/src/developers/tutorials/programs/calculator-$11.lzx
   openlaszlo/trunk/docs/src/developers/tutorials/programs/calculator-$7.lzx
   openlaszlo/trunk/docs/src/developers/tutorials/programs/calculator-$9.lzx
   openlaszlo/trunk/docs/src/developers/tutorials/programs/calculator_button.lzx
   
openlaszlo/trunk/docs/src/developers/tutorials/programs/calculator_display.lzx
   
openlaszlo/trunk/docs/src/developers/tutorials/programs/classes-tutorial-$5.lzx
   openlaszlo/trunk/docs/src/developers/tutorials/programs/data_app-$5.lzx
   openlaszlo/trunk/docs/src/developers/tutorials/programs/data_app-$6.lzx
   openlaszlo/trunk/docs/src/developers/tutorials/programs/data_app-$8.lzx
   openlaszlo/trunk/docs/src/developers/tutorials/programs/data_app-$9.lzx
   
openlaszlo/trunk/docs/src/developers/tutorials/programs/resources/phonebook.xml
   openlaszlo/trunk/docs/src/developers/tutorials/programs/text-tutorial-$14.lzx
   openlaszlo/trunk/docs/src/developers/tutorials/programs/text-tutorial-$6.lzx
Log:
Change 20071104-lou-r by [EMAIL PROTECTED] on 2007-11-04 13:46:47 AST
    in /Users/lou/src/svn/openlaszlo/trunk
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: change setXXX(foo) to setAtribute('XXX', foo) in the tutorial/programs 
directory

New Features:

Bugs Fixed: LPP-5038

Technical Reviewer: (pending)
QA Reviewer: (pending)
Doc Reviewer: John Sundman

Details:
there is one setter left in text-tutorial-$6.lzx, and that's setSrc,
but LzBrowser has no visible attributes

Tests:
docs/src/developers/tutorials/programs $grep [^'data']set[^'Attribute'] *.lzx
make sure whatever is left is not a setter

make sure all the changed examples work



Modified: 
openlaszlo/trunk/docs/src/developers/tutorials/programs/art_assets-$8.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/tutorials/programs/art_assets-$8.lzx   
2007-11-06 10:28:21 UTC (rev 7151)
+++ openlaszlo/trunk/docs/src/developers/tutorials/programs/art_assets-$8.lzx   
2007-11-06 13:59:47 UTC (rev 7152)
@@ -4,9 +4,8 @@
     <frame src="resources/sourface.png"/>
     <frame src="resources/smiley.gif"/>
   </resource>
-  
   <view x="150" y="50" resource="face"
-         onclick="this.setResourceNumber(2);"/>
+         onclick="this.setAttribute('frame', 2);"/>
 </canvas>
 <!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
 * Copyright 2007 Laszlo Systems, Inc.  All Rights Reserved.                   *

Modified: 
openlaszlo/trunk/docs/src/developers/tutorials/programs/calculator-$10.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/tutorials/programs/calculator-$10.lzx  
2007-11-06 10:28:21 UTC (rev 7151)
+++ openlaszlo/trunk/docs/src/developers/tutorials/programs/calculator-$10.lzx  
2007-11-06 13:59:47 UTC (rev 7152)
@@ -22,7 +22,7 @@
     <method name="initButton">
       this.buttonText.setAttribute('x', 
                                    this.getAttribute('labelX'));
-      this.buttonText.setText(this.getAttribute('buttLabel'));
+      this.buttonText.setAttribute('text', this.getAttribute('buttLabel'));
     </method>
         
     <text name="buttonText" font="obliqueText" fontsize="25" 
@@ -65,7 +65,7 @@
         this.oldValue = false;
         this.allOperators = new Array('+', '-', '/', '*');
         this.operator = '+';
-        this.screen.setText(this.valueX.toString());
+        this.screen.setAttribute('text', this.valueX.toString());
       </method>
       
       <method name="clear">
@@ -106,12 +106,12 @@
         if ((this.lastInput == 'none') 
             || (this.lastInput == 'operator')) {
           // clear display and rewrite
-          this.screen.setText(val);    
+          this.screen.setAttribute('text', val);    
         } else if (this.lastInput == 'digit') {
-          this.screen.setText(displ + val);
+          this.screen.setAttribute('text', displ + val);
         } else if (this.lastInput == 'equals') {
           this.clear();
-          this.screen.setText(val);
+          this.screen.setAttribute('text', val);
         }
         this.lastInput = 'digit';
         ]]>
@@ -152,7 +152,7 @@
           val = this.valueX / valFromDisp;
         }
         valFromDisp = val;
-        this.screen.setText(valFromDisp.toString());
+        this.screen.setAttribute('text', valFromDisp.toString());
         this.valueX = this.screen.getText();
       </method>
       
@@ -173,17 +173,17 @@
         if ((this.lastInput == 'none') 
              || (this.lastInput == 'operator')) {
           if (!this.isThereDecimal()) {
-            this.screen.setText("0.");
+            this.screen.setAttribute('text', "0.");
           }
         } else if (this.lastInput == 'digit') {
           if (!this.isThereDecimal()) {
             var newText = this.screen.getText();
             newText += ".";
-            this.screen.setText(newText);
+            this.screen.setAttribute('text', newText);
           }
         } else if (this.lastInput == 'equals') {
           this.clear(); 
-          this.screen.setText('0.');
+          this.screen.setAttribute('text', '0.');
         }
         this.lastInput = 'digit';
       </method>
@@ -192,7 +192,7 @@
         if ((this.lastInput == 'digit') ||
             (this.lastInput == 'equals')) {
           var newDisp = (this.screen.getText() - 0) * -1;
-          this.screen.setText(newDisp.toString()); 
+          this.screen.setAttribute('text', newDisp.toString()); 
         } else {
           clear();
         }            

Modified: 
openlaszlo/trunk/docs/src/developers/tutorials/programs/calculator-$11.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/tutorials/programs/calculator-$11.lzx  
2007-11-06 10:28:21 UTC (rev 7151)
+++ openlaszlo/trunk/docs/src/developers/tutorials/programs/calculator-$11.lzx  
2007-11-06 13:59:47 UTC (rev 7152)
@@ -36,7 +36,7 @@
     <method name="initButton">
       this.buttonText.setAttribute('x', 
                                    this.getAttribute('labelX'));
-      this.buttonText.setText(this.getAttribute('buttLabel'));
+      this.buttonText.setAttribute('text', this.getAttribute('buttLabel'));
     </method>
         
     <text name="buttonText" font="obliqueText" fontsize="25" 
@@ -81,7 +81,7 @@
         this.oldValue = false;
         this.allOperators = new Array('+', '-', '/', '*');
         this.operator = '+';
-        this.screen.setText(this.valueX.toString());
+        this.screen.setAttribute('text', this.valueX.toString());
       </method>
       
       <method name="clear">
@@ -120,12 +120,12 @@
         if ((this.lastInput == 'none') 
             || (this.lastInput == 'operator')) {
             // clear display and rewrite
-          this.screen.setText(val);    
+          this.screen.setAttribute('text', val);    
         } else if (this.lastInput == 'digit') {
-          this.screen.setText(displ + val);
+          this.screen.setAttribute('text', displ + val);
         } else if (this.lastInput == 'equals') {
           this.clear();
-          this.screen.setText(val);
+          this.screen.setAttribute('text', val);
         }
         this.lastInput = 'digit';
       ]]>
@@ -163,7 +163,7 @@
           val = this.valueX / valFromDisp;
         }
         valFromDisp = val;
-        this.screen.setText(valFromDisp.toString());
+        this.screen.setAttribute('text', valFromDisp.toString());
         this.valueX = this.screen.getText();
       </method>
       <method name="isThereDecimal">
@@ -182,17 +182,17 @@
         if ((this.lastInput == 'none') 
            || (this.lastInput == 'operator')) {
           if (!this.isThereDecimal()) {
-              this.screen.setText("0.");
+              this.screen.setAttribute('text', "0.");
           }
         } else if (this.lastInput == 'digit') {
           if (!this.isThereDecimal()) {
             var newText = this.screen.getText();
             newText += ".";
-            this.screen.setText(newText);
+            this.screen.setAttribute('text', newText);
           }
         } else if (this.lastInput == 'equals') {
           this.clear(); 
-          this.screen.setText('0.');
+          this.screen.setAttribute('text', '0.');
         }
         this.lastInput = 'digit';
       </method>
@@ -200,7 +200,7 @@
         if ((this.lastInput == 'digit') ||
             (this.lastInput == 'equals')) {
           var newDisp = (this.screen.getText() - 0) * -1;
-          this.screen.setText(newDisp.toString()); 
+          this.screen.setAttribute('text', newDisp.toString()); 
         } else {
           clear();
         }            

Modified: 
openlaszlo/trunk/docs/src/developers/tutorials/programs/calculator-$7.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/tutorials/programs/calculator-$7.lzx   
2007-11-06 10:28:21 UTC (rev 7151)
+++ openlaszlo/trunk/docs/src/developers/tutorials/programs/calculator-$7.lzx   
2007-11-06 13:59:47 UTC (rev 7152)
@@ -45,7 +45,7 @@
                 this.oldValue = false;
                 this.allOperators = new Array( '+', '-', '/', '*' );
                 this.operator = '+';
-                this.screen.setText( this.valueX.toString() );
+                this.screen.setAttribute('text',  this.valueX.toString() );
             </method>
            
             <method name="clear">
@@ -80,12 +80,12 @@
                 if ( ( this.lastInput == 'none' ) 
                     || ( this.lastInput == 'operator' ) ) {
                     // clear display and rewrite
-                    this.screen.setText( val );    
+                    this.screen.setAttribute('text',  val );    
                 } else if ( this.lastInput == 'digit' ) {
-                    this.screen.setText( displ + val );
+                    this.screen.setAttribute('text',  displ + val );
                 } else if ( this.lastInput == 'equals' ) {
                     this.clear();
-                    this.screen.setText( val );
+                    this.screen.setAttribute('text',  val );
                 }
                 this.lastInput = 'digit';
             ]]>
@@ -122,7 +122,7 @@
                     val = this.valueX / valFromDisp;
                 }
                 valFromDisp = val;
-                this.screen.setText( valFromDisp.toString() );
+                this.screen.setAttribute('text',  valFromDisp.toString() );
                 this.valueX = this.screen.getText();
             </method>
             <method name="isThereDecimal">
@@ -142,17 +142,17 @@
                 if ( ( this.lastInput == 'none' ) 
                    || ( this.lastInput == 'operator' ) ) {
                     if ( !this.isThereDecimal() ) {
-                        this.screen.setText( "0." );
+                        this.screen.setAttribute('text',  "0." );
                     }
                 } else if ( this.lastInput == 'digit' ) {
                     if ( !this.isThereDecimal() ) {
                         var newText = this.screen.getText();
                         newText += ".";
-                        this.screen.setText( newText );
+                        this.screen.setAttribute('text',  newText );
                     }
                 } else if ( this.lastInput == 'equals' ) {
                     this.clear(); 
-                    this.screen.setText( '0.' );
+                    this.screen.setAttribute('text',  '0.' );
                 }
                 this.lastInput = 'digit';
             </method>
@@ -161,7 +161,7 @@
                 if ( ( this.lastInput == 'digit' ) ||
                     ( this.lastInput == 'equals' ) ) {
                     var newDisp = ( this.screen.getText() - 0 ) * -1;
-                    this.screen.setText( newDisp.toString() ); 
+                    this.screen.setAttribute('text',  newDisp.toString() ); 
                 } else {
                     clear();
                 }            

Modified: 
openlaszlo/trunk/docs/src/developers/tutorials/programs/calculator-$9.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/tutorials/programs/calculator-$9.lzx   
2007-11-06 10:28:21 UTC (rev 7151)
+++ openlaszlo/trunk/docs/src/developers/tutorials/programs/calculator-$9.lzx   
2007-11-06 13:59:47 UTC (rev 7152)
@@ -18,7 +18,7 @@
     <method name="initButton">
       this.buttonText.setAttribute('x', 
                                    this.getAttribute('labelX'));
-      this.buttonText.setText(this.getAttribute('buttLabel'));
+      this.buttonText.setAttribute('text', this.getAttribute('buttLabel'));
     </method>
     
     <text name="buttonText" font="obliqueText" fontsize="25" 

Modified: 
openlaszlo/trunk/docs/src/developers/tutorials/programs/calculator_button.lzx
===================================================================
--- 
openlaszlo/trunk/docs/src/developers/tutorials/programs/calculator_button.lzx   
    2007-11-06 10:28:21 UTC (rev 7151)
+++ 
openlaszlo/trunk/docs/src/developers/tutorials/programs/calculator_button.lzx   
    2007-11-06 13:59:47 UTC (rev 7152)
@@ -25,7 +25,7 @@
         <method name="initButton">
             this.buttonText.setAttribute( 'x', 
                                           this.getAttribute( 'labelX' ) );
-            this.buttonText.setText( this.getAttribute( 'buttLabel' ) );
+            this.buttonText.setAttribute('text',  this.getAttribute( 
'buttLabel' ) );
         </method>
         
         <text name="buttonText" font="obliqueText" fontsize="25" 

Modified: 
openlaszlo/trunk/docs/src/developers/tutorials/programs/calculator_display.lzx
===================================================================
--- 
openlaszlo/trunk/docs/src/developers/tutorials/programs/calculator_display.lzx  
    2007-11-06 10:28:21 UTC (rev 7151)
+++ 
openlaszlo/trunk/docs/src/developers/tutorials/programs/calculator_display.lzx  
    2007-11-06 13:59:47 UTC (rev 7152)
@@ -17,7 +17,7 @@
             this.oldValue = false;
             this.allOperators = new array( '+', '-', '/', '*' );
             this.operator = '+';
-            this.screen.setText( this.valueX.toString() );
+            this.screen.setAttribute('text',  this.valueX.toString() );
         </method>
         
         <method name="clear">
@@ -56,12 +56,12 @@
             if ( ( this.lastInput == 'none' ) 
                 || ( this.lastInput == 'operator' ) ) {
                 // clear display and rewrite
-                this.screen.setText( val );    
+                this.screen.setAttribute('text',  val );    
             } else if ( this.lastInput == 'digit' ) {
-                this.screen.setText( displ + val );
+                this.screen.setAttribute('text',  displ + val );
             } else if ( this.lastInput == 'equals' ) {
                 this.clear();
-                this.screen.setText( val );
+                this.screen.setAttribute('text',  val );
             }
             this.lastInput = 'digit';
         ]]>
@@ -102,7 +102,7 @@
                 val = this.valueX / valFromDisp;
             }
             valFromDisp = val;
-            this.screen.setText( valFromDisp.toString() );
+            this.screen.setAttribute('text',  valFromDisp.toString() );
             this.valueX = this.screen.getText();
         </method>
 
@@ -123,17 +123,17 @@
             if ( ( this.lastInput == 'none' ) 
                 || ( this.lastInput == 'operator' ) ) {
                 if ( !this.isThereDecimal() ) {
-                    this.screen.setText( "0." );
+                    this.screen.setAttribute('text',  "0." );
                 }
             } else if ( this.lastInput == 'digit' ) {
                 if ( !this.isThereDecimal() ) {
                     var newText = this.screen.getText();
                     newText += ".";
-                    this.screen.setText( newText );
+                    this.screen.setAttribute('text',  newText );
                 }
             } else if ( this.lastInput == 'equals' ) {
                 this.clear(); 
-                this.screen.setText( '0.' );
+                this.screen.setAttribute('text',  '0.' );
             }
             this.lastInput = 'digit';
         </method>
@@ -143,7 +143,7 @@
             if ( ( this.lastInput == 'digit' ) ||
                 ( this.lastInput == 'equals' ) ) {
                 var newDisp = ( this.screen.getText() - 0 ) * -1;
-                this.screen.setText( newDisp.toString() ); 
+                this.screen.setAttribute('text',  newDisp.toString() ); 
             } else {
                 clear();
             }            

Modified: 
openlaszlo/trunk/docs/src/developers/tutorials/programs/classes-tutorial-$5.lzx
===================================================================
--- 
openlaszlo/trunk/docs/src/developers/tutorials/programs/classes-tutorial-$5.lzx 
    2007-11-06 10:28:21 UTC (rev 7151)
+++ 
openlaszlo/trunk/docs/src/developers/tutorials/programs/classes-tutorial-$5.lzx 
    2007-11-06 13:59:47 UTC (rev 7152)
@@ -17,10 +17,10 @@
       Debug.write('Dog');
     </method>
     <method name="doOver">
-      this.setResourceNumber(2);
+      this.setAttribute('frame', 2);
     </method>
     <method name="doOut">
-      this.setResourceNumber(1);
+      this.setAttribute('frame', 1);
     </method>
   </class>
   

Modified: 
openlaszlo/trunk/docs/src/developers/tutorials/programs/data_app-$5.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/tutorials/programs/data_app-$5.lzx     
2007-11-06 10:28:21 UTC (rev 7151)
+++ openlaszlo/trunk/docs/src/developers/tutorials/programs/data_app-$5.lzx     
2007-11-06 13:59:47 UTC (rev 7152)
@@ -6,7 +6,7 @@
     <simplelayout axis="y"/>
     <!-- 1 -->
     <view name="list" 
-          
onclick="parent.updateContact.setVisible(!parent.updateContact.visible);">
+          onclick="parent.updateContact.setAttribute('visible', 
!parent.updateContact.visible);">
       <simplelayout axis="x"/>
       <text datapath="@firstName"/>
       <text datapath="@lastName"/>

Modified: 
openlaszlo/trunk/docs/src/developers/tutorials/programs/data_app-$6.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/tutorials/programs/data_app-$6.lzx     
2007-11-06 10:28:21 UTC (rev 7151)
+++ openlaszlo/trunk/docs/src/developers/tutorials/programs/data_app-$6.lzx     
2007-11-06 13:59:47 UTC (rev 7152)
@@ -5,7 +5,7 @@
   <view>
     <simplelayout axis="y"/>
     <!-- 1 -->
-    <text 
onclick="parent.newContact.setVisible(!parent.newContact.visible);">New 
Entry...</text>
+    <text onclick="parent.newContact.setAttribute('visible', 
!parent.newContact.visible);">New Entry...</text>
     <!-- 2 -->
     <view name="newContact" datapath="new:/contact" 
           visible="false" x="20" height="120">
@@ -28,7 +28,7 @@
   <view datapath="dset:/phonebook/contact">
     <simplelayout axis="y"/>
     <view name="list" 
-          
onclick="parent.updateContact.setVisible(!parent.updateContact.visible);">
+          onclick="parent.updateContact.setAttribute('visible', 
!parent.updateContact.visible);">
       <simplelayout axis="x"/>
       <text datapath="@firstName"/>
       <text datapath="@lastName"/>

Modified: 
openlaszlo/trunk/docs/src/developers/tutorials/programs/data_app-$8.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/tutorials/programs/data_app-$8.lzx     
2007-11-06 10:28:21 UTC (rev 7151)
+++ openlaszlo/trunk/docs/src/developers/tutorials/programs/data_app-$8.lzx     
2007-11-06 13:59:47 UTC (rev 7152)
@@ -5,7 +5,7 @@
   <view>
     <simplelayout axis="y"/>
     <!-- 1 -->
-    <text 
onclick="parent.newContact.setVisible(!parent.newContact.visible);">New 
Entry...</text>
+    <text onclick="parent.newContact.setAttribute('visible', 
!parent.newContact.visible);">New Entry...</text>
     <!-- 2 -->
     <view name="newContact" datapath="new:/contact" 
           visible="false" x="20" height="120">
@@ -23,7 +23,7 @@
            var dp=canvas.datasets.dset.getPointer();   
            dp.selectChild();                           
            dp.addNodeFromPointer(parent.datapath);     
-           parent.setDatapath("new:/contact");         
+           parent.setAttribute('datapath', "new:/contact");         
          </handler>
       </button>
     </view>
@@ -32,7 +32,7 @@
   <view datapath="dset:/phonebook/contact">
     <simplelayout axis="y"/>
     <view name="list" 
-          
onclick="parent.updateContact.setVisible(!parent.updateContact.visible);">
+          onclick="parent.updateContact.setAttribute('visible', 
!parent.updateContact.visible);">
         <simplelayout axis="x"/>
         <text datapath="@firstName"/>
         <text datapath="@lastName"/>

Modified: 
openlaszlo/trunk/docs/src/developers/tutorials/programs/data_app-$9.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/tutorials/programs/data_app-$9.lzx     
2007-11-06 10:28:21 UTC (rev 7151)
+++ openlaszlo/trunk/docs/src/developers/tutorials/programs/data_app-$9.lzx     
2007-11-06 13:59:47 UTC (rev 7152)
@@ -14,7 +14,7 @@
   <simplelayout axis="y"/>
   <view>
     <simplelayout axis="y"/>
-    <text 
onclick="parent.newContact.setVisible(!parent.newContact.visible);">New 
Entry...</text>
+    <text onclick="parent.newContact.setAttribute('visible', 
!parent.newContact.visible);">New Entry...</text>
     <contactview name="newContact" datapath="new:/contact">
       <button width="80" x="200" y="10">Add
         <handler name="onclick">
@@ -22,15 +22,15 @@
           var dp=canvas.datasets.dset.getPointer();
           dp.selectChild();
           dp.addNodeFromPointer( parent.datapath );
-          parent.setVisible(false);
-          parent.setDatapath("new:/contact");
+          parent.setAttribute('visible', false);
+          parent.setAttribute('datapath', "new:/contact");
         </handler>
       </button>
     </contactview>
   </view>
   <view datapath="dset:/phonebook/contact">
     <simplelayout axis="y"/>
-    <view name="list" 
onclick="parent.updateContact.setVisible(!parent.updateContact.visible);">
+    <view name="list" onclick="parent.updateContact.setAttribute('visible', 
!parent.updateContact.visible);">
       <simplelayout axis="x"/>
       <text datapath="@firstName"/>
       <text datapath="@lastName"/>

Modified: 
openlaszlo/trunk/docs/src/developers/tutorials/programs/resources/phonebook.xml
===================================================================
--- 
openlaszlo/trunk/docs/src/developers/tutorials/programs/resources/phonebook.xml 
    2007-11-06 10:28:21 UTC (rev 7151)
+++ 
openlaszlo/trunk/docs/src/developers/tutorials/programs/resources/phonebook.xml 
    2007-11-06 13:59:47 UTC (rev 7152)
@@ -2,9 +2,9 @@
 * Copyright 2001-2007 Laszlo Systems, Inc.  All Rights Reserved.              *
 * Use is subject to license terms.                                            *
 * X_LZ_COPYRIGHT_END ****************************************************** -->
-<contacts>
+<phonebook>
     <contact firstName="John" lastName="Smith" phone="617-555-7855" 
email="[EMAIL PROTECTED]"/> 
     <contact firstName="Karl" lastName="Oberschnautzer" phone="111-555-9713" 
email="[EMAIL PROTECTED]"/> 
     <contact firstName="Lisa" lastName="Jones" phone="415-555-8743" 
email="[EMAIL PROTECTED]"/> 
     <contact firstName="Mary" lastName="Brown" phone="212-555-5211" 
email="[EMAIL PROTECTED]"/>
-</contacts> 
+</phonebook> 

Modified: 
openlaszlo/trunk/docs/src/developers/tutorials/programs/text-tutorial-$14.lzx
===================================================================
--- 
openlaszlo/trunk/docs/src/developers/tutorials/programs/text-tutorial-$14.lzx   
    2007-11-06 10:28:21 UTC (rev 7151)
+++ 
openlaszlo/trunk/docs/src/developers/tutorials/programs/text-tutorial-$14.lzx   
    2007-11-06 13:59:47 UTC (rev 7152)
@@ -7,7 +7,7 @@
    </button>
 
    <button x="100" y="15"
-      onclick="canvas.theField.setText('Hello, Laszlo!');">
+      onclick="canvas.theField.setAttribute('text', 'Hello, Laszlo!');">
          Set Text
    </button>
 
@@ -20,7 +20,7 @@
       function addText() {
       var origText = canvas.theField.getText();
       var newText = origText + " And on.";
-           canvas.theField.setText(newText);
+           canvas.theField.setAttribute('text', newText);
       }
    </script>
 

Modified: 
openlaszlo/trunk/docs/src/developers/tutorials/programs/text-tutorial-$6.lzx
===================================================================
--- 
openlaszlo/trunk/docs/src/developers/tutorials/programs/text-tutorial-$6.lzx    
    2007-11-06 10:28:21 UTC (rev 7151)
+++ 
openlaszlo/trunk/docs/src/developers/tutorials/programs/text-tutorial-$6.lzx    
    2007-11-06 13:59:47 UTC (rev 7152)
@@ -3,7 +3,7 @@
    <include href="extensions/html.lzx"/>
    <class name="browser" extends="window" resizable="true" bgcolor="silver">
       <edittext name="txt" text="http://openlaszlo.org/"; width="300"/>
-      <button x="310" onclick="parent.htmlview.setSrc(parent.txt.getText()); 
parent.htmlview.setAttribute(visible, true)">
+      <button x="310" onclick="parent.htmlview.setSrc(parent.txt.getText()); 
parent.htmlview.setAttribute('visible', true)">
       Load
       </button>
       <html name="htmlview"


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

Reply via email to