This file contains hidden or 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
<div on="click then highlight">Click me</div> |
This file contains hidden or 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
class Example | |
def example(arg1) | |
return "Hello: " + arg1.to_s | |
end | |
end |
This file contains hidden or 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
<div id="result">You should have seen a count here</div> | |
<script> | |
ti.ready(function($) | |
{ | |
var db = new ti.Database | |
db.open("foo"); | |
db.execute("create table if not exists Test (Phrase text, Timestamp int)"); | |
db.execute("insert into Test values (?,?)", ["Jeff!",new Date().getTime()]); | |
var rs = db.execute("select count(*) from Test where Phrase like 'Jeff%'"); |
This file contains hidden or 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
<input type='text' value='1' id='foo' /> | |
<button on="click then value[id=foo,value=expr(String(parseInt($('foo').value)+10))]">Try</button> | |
This file contains hidden or 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
<app:modalbox on="r:daycare.locate.by.zip.request then execute" title="Modalbox title goes here"> | |
<app:iterator property="message" on="r:daycare.locate.by.zip.response then execute"> | |
<html:div>#{DayCareName}</html:div> | |
</app:iterator> | |
</app:modalbox> | |
This file contains hidden or 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
<script> | |
document.write("<div>platform name = "+Titanium.Platform.name+"</div>"); | |
document.write("<div>platform version = "+Titanium.Platform.version+"</div>"); | |
document.write("<div>platform architecture = "+Titanium.Platform.architecture+"</div>"); | |
document.write("<div>platform ip_address = "+Titanium.Platform.address+"</div>"); | |
document.write("<div>platform mac_address = "+Titanium.Platform.macaddress+"</div>"); | |
document.write("<div>platform id = "+Titanium.Platform.id+"</div>"); | |
document.write("<div>platform processors = "+Titanium.Platform.processorCount+"</div>"); | |
document.write("<div>platform username = "+Titanium.Platform.username+"</div>"); | |
document.write("<div>platform ostype = "+Titanium.Platform.ostype+"</div>"); |
This file contains hidden or 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 trayCallback = function() | |
{ | |
Titanium.UI.currentWindow.setVisible(!Titanium.UI.currentWindow.isVisible()); | |
}; | |
var tray = Titanium.UI.addTray("app://tray.png", trayCallback); | |
This file contains hidden or 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
<?include_once 'facebook.php'; | |
//////////////////////////////////////////////////////////////////////////////// | |
// Put your app info here. | |
//////////////////////////////////////////////////////////////////////////////// | |
$APP_INFO = array('api_key' => 'YOUR API KEY', | |
'secret' => 'YOUR API SECRET'); | |
This file contains hidden or 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 a Facebook button with a session proxy | |
var button = Titanium.Facebook.createLoginButton({ | |
'id':'fb', | |
'style':'wide', | |
'apikey':'MY API KEY', | |
'sessionProxy':'http://my/url' | |
}); | |
OlderNewer