GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — fullstack-javascript/code/03-parse-sdk/app.js at master · johntg5/fullstack-javascript Expand file tree/ Copy pathapp.jsMore file actions 34 lines (29 loc) · 1.06 KB / Copy pathapp.jsFile metadata and controls34 lines (29 loc) · 1.06 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 $(document).ready(function() { var parseApplicationId = 'GET-YOUR-KEYS-AT-PARSE.COM' var parseJavaScriptKey = 'GET-YOUR-KEYS-AT-PARSE.COM' // Azat's app, please don't use it! Get your own keys at Parse.com parseApplicationId = 'Zc36GIp6WyzKIB9HvqRBEGnIeMO0X21rDbVwGPvp' parseJavaScriptKey = 'r5zTZ9eydAcnRhAUI6k3XazS1JSnOPLbiaT1cWY6' //change parseApplicationId and parseJavaScriptKey to values from Parse.com application dashboard Parse.initialize(parseApplicationId, parseJavaScriptKey) var Test = Parse.Object.extend('Test') var test = new Test() $('.btn-save').click(function(){ try { var data = JSON.parse($('textarea').val()) } catch (e) { alert('Invalid JSON') } if (!data) return false test.save(data, { success: function(object) { console.log('Parse.com object is saved: ', object) $('.log').html(JSON.stringify(object, null, 2)) //alternatively you could use alert('Parse.com object is saved') }, error: function(object) { console.log('Error! Parse.com object is not saved: ', object) } }) }) }) |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |