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
function htmlToTi(_args){ | |
var json = {}; | |
var keys = _.keys(_args); | |
_.each(keys, function(key){ | |
switch(key){ | |
case "bgcolor": |
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 _args = arguments[0] || {}; | |
var Cloud = require('ti.cloud'); | |
$.listView.visible = false; | |
function getUsers(page){ | |
$.listView.visible = false; | |
// Default to 1st Page if no page is entered |
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 item = { | |
template: isBookmark ? "favoriteTemplate" : "userTemplate", | |
properties: { | |
searchableText: item.name + ' ' + item.company + ' ' + item.email, | |
user: item, | |
}, | |
userName: {text: item.firstName+" "+item.lastName}, | |
userCompany: {text: item.company}, | |
userPhoto: {image: item.photo}, | |
userEmail: {text: item.email} |
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
<key>NSLocationAlwaysUsageDescription</key> | |
<string> | |
YOUR DESCRIPTOIN GOES HERE - EX. This application would like to use your current location. | |
</string> |
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
$.index.addEventListener('visible',function(e){ | |
if (e.view == 'detail'){ | |
e.button.title = "Master"; | |
$.index.detailView.getWindow().leftNavButton = e.button; | |
} else if (e.view == 'master'){ | |
$.index.detailView.getWindow().leftNavButton = null; | |
} | |
}); | |
$.index.open(); |
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 your Widget **/ | |
var myWidget = Alloy.createWidget("myWidget"); | |
/* | |
Now the widget has an icon and title based on the default values as we defined them | |
in the widget.js file (lines 26/27) | |
*/ |
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
function doClick(e) { | |
if(OS_MOBILEWEB){ | |
var btn=document.createElement("BUTTON"); | |
btn.style.position='absolute'; | |
var t=document.createTextNode("CLICK ME"); | |
btn.appendChild(t); | |
document.body.appendChild(btn); |
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
<android xmlns:android="http://schemas.android.com/apk/res/android"> | |
<manifest> | |
<application> | |
<!-- Replace "PASTE YOUR GOOGLE MAPS API KEY HERE" with the Google API key you obtained --> | |
<meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="<YOUR KEY HERE>"/> | |
</application> | |
<uses-sdk android:minSdkVersion="14" /> | |
<uses-sdk android:targetSdkVersion="19" /> | |
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/> | |
<uses-permission android:name="android.permission.INTERNET"/> |
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
https://apex.oracle.com/pls/apex/f?p=18868 |
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 an instance of the facebook module (need to include this in the tiapp.xml) | |
*/ | |
var fb = require('facebook'); | |
/* | |
* Initiate the facebook module with appropriate APP ID and PERMISSIONS ARRAY (developer.facebook.com) | |
*/ | |
fb.appid = FACEBOOK_APP_ID; |