Sha256: 97a8f2f1d47f7152b143f952d9f2dab9448b4bc580e5bdb851dcc5823f78dd50
Contents?: true
Size: 580 Bytes
Versions: 4
Compression:
Stored size: 580 Bytes
Contents
drivers = window.drivers || {} drivers.network = {} $(document).ready(function() { //drivers.network.request("GET", "http://test.services.fittr.com/ping", {}, null); }) //A basic get request that supports callbacks drivers.network.request = function(verb, url, params, completion) { $.ajax({ url: url, type: verb, data: params, success: function(data) { data = JSON.parse(data); completion = completion || function() {} if (completion != null) { completion(data); } }, error: function(xhr, status, err) { } }) }
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
flok-0.0.10 | app/drivers/browser/network.js |
flok-0.0.9 | app/drivers/browser/network.js |
flok-0.0.8 | app/drivers/browser/network.js |
flok-0.0.7 | app/drivers/browser/network.js |