This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Define our parser class. It takes in some text, and then you can call "linkifyURLs", or one of the other methods, | |
* and then call "getHTML" to get the fully parsed text back as HTML! | |
* @param text that you want parsed | |
*/ | |
function Parser(text) { | |
var html = text; | |
var urlRegex = /((ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?)/gi; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SplitViewNav = {}; | |
// WINDOWS | |
SplitViewNav.masterWindow = Ti.UI.createWindow({title:'Navigation',backgroundColor:'#898989'}); | |
/* SplitViewNav.masterWindow.add(navGroup); */ | |
SplitViewNav.detailWindow = Ti.UI.createWindow({title:'Welcome to Burnham Parts',backgroundColor:'#fff'}); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// create tab group | |
var tabGroup = Titanium.UI.createTabGroup(); | |
// | |
// create base UI tab and root window | |
// | |
var win1 = Titanium.UI.createWindow({ | |
title: 'Tab 1', | |
backgroundColor: '#fff' | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Titanium.include('suds.js'); | |
var win = Titanium.UI.createWindow({ | |
backgroundColor:'#fff', | |
fullscreen:true | |
}); | |
var url='http://extdata.uspta.com/iphonefap/fapwebsvc.asmx'; | |
var callparams = { | |
zip: '77042', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IMac27Quad:cwti aaronksaunders$ ti new HelloTi com.ci.helloti iphone | |
/Users/aaronksaunders/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': no such file to load -- rocco (LoadError) | |
from /Users/aaronksaunders/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' | |
from /Users/aaronksaunders/.rvm/gems/ruby-1.9.2-p180/gems/ti-0.1.9/lib/ti.rb:8:in `<top (required)>' | |
from /Users/aaronksaunders/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' | |
from /Users/aaronksaunders/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' | |
from /Users/aaronksaunders/.rvm/gems/ruby-1.9.2-p180/gems/ti-0.1.9/bin/ti:3:in `<top (required)>' | |
from /Users/aaronksaunders/.rvm/gems/ruby-1.9.2-p180/bin/ti:19:in `load' | |
from /Users/aaronksaunders/.rvm/gems/ruby-1.9.2-p180/bin/ti:19:in `<main>' | |
IMac27Quad:cwti aaronksaunders$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var serviceList = []; | |
var xhr; | |
var tmpSvc = fetchServicesByProfile(Titanium.UI.currentWindow.profileid); | |
for(i=0;i<tmpSvc.length;i++) | |
{ | |
//Populate serviceList array. | |
} | |
function processServiceList(index) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var window = Titanium.UI.createWindow({ | |
}); | |
var popOver_button = Titanium.UI.createButton({ | |
title: "PopOver Button", | |
width:150, | |
height:35 | |
}) | |
window.add(popOver_button); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ti.include('my_navgroup.js'); | |
function createWindow(_title) { | |
var win1=Titanium.UI.createWindow({ | |
width:'100%', | |
height:'100%', | |
title:_title, | |
id:"win-"+_title, | |
left:0, | |
top:0, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Titanium.UI.setBackgroundColor('#ffffff'); | |
var myglobalscope = {}; // global scope | |
Ti.include( // ADD FILE HERE TO HAVE ACCESS TO GLOBAL SCOPE | |
'ui.js', | |
'something_else.js' | |
); | |
//Use our custom UI constructors to build the app's UI | |
myglobalscope.ui.createApplicationTabGroup(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Titanium.UI.setBackgroundColor('#ffffff'); | |
var myglobalscope = {}; // global scope | |
Ti.include( // ADD FILE HERE TO HAVE ACCESS TO GLOBAL SCOPE | |
'ui.js', | |
'something_else.js' | |
); | |
myglobalscope.ui.createBaseWindow().open(); |
OlderNewer