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 JSONCall = function(url,data, onLoad, onError){ | |
this.url = url; | |
this.data = data; | |
this.onLoad = onLoad; | |
this.onError = onError; | |
}; | |
JSONCall.prototype = { | |
call: function(){ | |
if(typeof JsonClient==='undefined'){ | |
JsonClient = Titanium.Network.createHTTPClient(); |
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
<!doctype html> | |
<html> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8" /> | |
<title>15 Puzzle</title> | |
<style type="text/css"> | |
body{color:black;background:white;font-family:Arial,Helvetica,sans-serif;font-size:20px;margin:0;} | |
table tr td{text-align:center;} |
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 type="text/javascript"> | |
onerror = function (a, b, c) { | |
alert([a, b, c]); | |
}; | |
</script> | |
<script type="text/javascript"> | |
var x = { | |
"JsonResult": { | |
"List": [{ | |
"Subject": "My book report on J. K. Rowling's <u>Harry Potter</u> series.", |
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
//sortable-2d-array.js | |
exports = module.exports = sortable2DArray; | |
function sortable2DArray(data) { | |
this.data = data; | |
} | |
sortable2DArray.prototype.sortBy = function (o) { | |
var fields = o.fields || []; |
NewerOlder