<klip>
   <identity>
      <title>
         API: TextArea.onFocus
      </title>
   </identity>
   <locations>
      <contentsource>
         http://support.klipfolio.com/files/demo/demo.xml
      </contentsource>
      <icon>
         http://www.klipfolio.com/static/klips/klipfolio/sample_icon.png
      </icon>
      <banner>
         http://www.klipfolio.com/static/klips/klipfolio/sample_banner.png   
      </banner>
   </locations>
   <style>
      alert {
         type: item;
      }

      sender {
         itemcol: 2;
         noterow: 1;

         label: 'Sender';

         emphasis: strong;
      }


      summary {
         itemcol: 3;
         noterow: 4;

         wrap: false;

         notelabel: false;
      }

      date {
         itemcol: 4;
         noterow: 2;

         label: 'Date';
      }

      category {
         noterow: 3;

         label: 'Category';
      }


      level {
         itemcol: 1;
         noterow: 5;
         notelabel: false;
         
         type: image;
      }

      url {
         type: link;
      }
            
      id {
         key: override;
      }
   </style>
   <klipscript>
   <![CDATA[

var textarea1, textarea2; 

function onLoad() {
    var tab = Setup.addTab( "Tab1" );
    
    textarea1 = tab.addTextArea();
    textarea1.onBlur = textarea_onBlur;
    textarea1.onFocus = textarea_onFocus;
    
    textarea2 = tab.addTextArea();
    textarea2.onBlur = textarea_onBlur;
    textarea2.onFocus = textarea_onFocus;
}

function textarea_onBlur() {
	trace( "textArea onBlur: " + this.value + "\r\n" );
}

function textarea_onFocus() {
	trace( "textArea onFocus: " + this.value + "\r\n" );
}


function onRefresh()
{
	return Engines.Data.process( Prefs.contentsource );
}
  
   ]]>
   </klipscript>
</klip>

