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
// SEE QUESTION IN QA FORUM | |
// http://developer.appcelerator.com/question/142378/integrating-nodeacs-with-expressjs-not-working | |
// @aaronksaunders | |
// | |
/** | |
* Module dependencies. | |
*/ | |
var express = require('express'); |
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
## jQuery [plain_text] | |
Make sure you make a reference to the jQuery library in the header of your HTML. Also remember that you must load the HTML into the WebView from a local file. | |
## This event definition goes in you app.js [javascript] | |
Ti.App.addEventListener('openBrowser',function(e){ | |
Ti.Platform.openURL(e.URL); | |
}); | |
## This JQuery goes in the HTML file [javascript] |
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
DialogWindow = function(message, type){ | |
// Default params | |
var message = message || "How about you add some message to this? :)"; | |
var type = type || "error"; | |
var window = Titanium.UI.createWindow({ | |
width: 320, | |
height: 44, | |
top: 44, |
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 UI = require('ui'); | |
var btn = UI.Button({ | |
title: 'Hello World', | |
width: Ti.UI.SIZE, | |
height: Ti.UI.SIZE, | |
onClick: function(){ | |
alert('Button Clicked'); | |
} | |
}); |
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
LoadingTableViewRow = function(message) { | |
var row = Titanium.UI.createTableViewRow({ | |
height: 70, | |
touchEnabled: false | |
}); | |
var indicator = Titanium.UI.createActivityIndicator({ | |
width:"auto", | |
height: 30, | |
color: "665b5b", |
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
/* | |
* Facebook 'alike' menu in Titanium Appcelerator | |
* Mauro Parra-Miranda <[email protected]> | |
* License: Free to use, no support at all. | |
* USAGE: Create a new mobile project in Ti Studio, paste this file into app.js | |
*/ | |
var win = Ti.UI.createWindow({ | |
backgroundColor : 'white', | |
}); |
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.App.addEventListener("playvideo", function (e) { | |
var win11 = Titanium.UI.createWindow({ | |
orientationModes: [Ti.UI.LANDSCAPE_LEFT, Ti.UI.LANDSCAPE_RIGHT], | |
title: "Video", | |
zIndex: 222222 | |
}); | |
var activeMovie = Titanium.Media.createVideoPlayer({ | |
fullscreen: !0, | |
autoplay: !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
<?xml version="1.0" encoding="UTF-8"?> | |
<!--Google Weather API Conditions. Compiled by Dennis Delimarsky, http://dennisdel.com/content/conditions.xml--> | |
<!--Tweaked by Brian Zerangue, February 1, 2011--> | |
<conditions> | |
<type handle="partly-sunny">Partly Sunny</type> | |
<type handle="scattered-thunderstorms">Scattered Thunderstorms</type> | |
<type handle="showers">Showers</type> | |
<type handle="scattered-showers">Scattered Showers</type> | |
<type handle="rain-and-snow">Rain and Snow</type> | |
<type handle="overcast">Overcast</type> |
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
// http://cloud.appcelerator.com/docs/api/v1/acls/create | |
var Backbone = require('/lib/backbone'), | |
_ = require('/lib/underscore'); | |
var ReviewModel = Backbone.Model.extend({ | |
modelNameForACS : 'Reviews' //just add Model Name of ACS | |
}); | |
var ReviewCollection = Backbone.Collection.extend({ |
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
/** | |
* Courtesy of Jeff Bonnes | |
* http://www.titaniumdevelopment.com.au/blog/2011/09/12/debugging-ipad-performance-and-memory-usage/ | |
*/ | |
/** | |
* Modified to a commonJS format by Stephen Feather | |
* Usage: | |
* var Tracer = require('/lib/tracer'); |