Permalink
Browse files

.

  • Loading branch information...
1 parent ce29982 commit 1c68adad53c9024b482ae1c73c84fe5b28f502fe @pec1985 pec1985 committed Nov 3, 2010
Showing with 4 additions and 9 deletions.
  1. +4 −9 Resources/input2.js
View
@@ -4,18 +4,13 @@ Ti.include('first.js');
Ti.include('webview.js');
var win = Ti.UI.currentWindow;
win.backgroundColor='#CCC';
-var inputView = Ti.UI.createTextField({width:300,height:75,top:15,backgroundColor:'white',borderColor:'#999',borderRadius:10});
-var input = Ti.UI.createTextArea({value:'{"sample":[{"one":"this is one"},{"two":"this is two"}]}',left:10,right:10,top:10,bottom:10,height:75,font:{fontSize:16},suppressReturn:true});
-var button = Ti.UI.createButton({top:100,width:100,height:40,title:'Parse Json'});
-var me = Ti.UI.createLabel({text:'follow me on twitter: @pecdev',top:150,width:'auto',height:'auto'});
+var inputView = Ti.UI.createTextField({width:320,height:200,top:0,backgroundColor:'white'});
+var input = Ti.UI.createTextArea({value:'{"sample":[{"one":"this is one"},{"two":"this is two"}]}',left:5,right:5,top:5,bottom:5,height:190,font:{fontSize:16},suppressReturn:false});
+var button = Ti.UI.createButton({title:'Parse Json'});
+win.rightNavButton=button;
inputView.add(input);
win.add(inputView);
-win.add(button);
-win.add(me);
button.addEventListener('click',function(){
Ti.UI.currentTab.open(firstView(input.value,'text'));
});
-me.addEventListener('click',function(){
- Titanium.Platform.openURL('http://twitter.com/pecdev');
-});

0 comments on commit 1c68ada

Please sign in to comment.