b33eccea by ex

00

1 parent 8b1c99c4
...@@ -73,10 +73,18 @@ AppClient.prototype.getGPS = function (callbackName, callback, jsonStr) { ...@@ -73,10 +73,18 @@ AppClient.prototype.getGPS = function (callbackName, callback, jsonStr) {
73 this.appObj.registerHandler('postGPS', function(data, responseCallback) { 73 this.appObj.registerHandler('postGPS', function(data, responseCallback) {
74 74
75 var res = JSON.parse(data) 75 var res = JSON.parse(data)
76 var key = res.testKey 76 layer.open({
77 content: data,
78 time: 2
79 });
77 layer.open({ 80 layer.open({
78 content: JSON.stringify(key), 81 content: JSON.stringify(key),
79 time: 10 82 time: 2
83 });
84 var key = res['testKey']
85 layer.open({
86 content: JSON.stringify(key),
87 time: 2
80 }); 88 });
81 // log('ObjC called testJavascriptHandler with', data) 89 // log('ObjC called testJavascriptHandler with', data)
82 // var responseData = { 'Javascript Says':'Right back atcha!' } 90 // var responseData = { 'Javascript Says':'Right back atcha!' }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!