Sha256: 37d792b59e394a9aba1197551c4af317b3d2fbbdd10f1e2408f9d3775ebd09f8

Contents?: true

Size: 511 Bytes

Versions: 83

Compression:

Stored size: 511 Bytes

Contents

//Socket descriptor, each new socket should increment *before* using it
var if_net_request_socket_index = 0

//A basic get request that supports callbacks
if_net_req = function(verb, url, params, tp_base) {
  $.ajax({
    url: url,
    method: verb,
    data: params,
    dataType: "json",
    success: function(data) {
      int_dispatch([3, "int_net_cb", tp_base, true, data]);
    },
    error: function(xhr, textStatus, err) {
      int_dispatch([3, "int_net_cb", tp_base, false, textStatus]);
    }
  })
}

Version data entries

83 entries across 83 versions & 1 rubygems

Version Path
flok-0.0.102 app/drivers/chrome/src/net.js
flok-0.0.101 app/drivers/chrome/src/net.js
flok-0.0.100 app/drivers/chrome/src/net.js
flok-0.0.99 app/drivers/chrome/src/net.js
flok-0.0.98 app/drivers/chrome/src/net.js
flok-0.0.97 app/drivers/chrome/src/net.js
flok-0.0.96 app/drivers/chrome/src/net.js
flok-0.0.95 app/drivers/chrome/src/net.js
flok-0.0.94 app/drivers/chrome/src/net.js
flok-0.0.93 app/drivers/chrome/src/net.js
flok-0.0.92 app/drivers/chrome/src/net.js
flok-0.0.91 app/drivers/chrome/src/net.js
flok-0.0.90 app/drivers/chrome/src/net.js
flok-0.0.89 app/drivers/chrome/src/net.js
flok-0.0.88 app/drivers/chrome/src/net.js
flok-0.0.87 app/drivers/chrome/src/net.js
flok-0.0.86 app/drivers/chrome/src/net.js
flok-0.0.85 app/drivers/chrome/src/net.js
flok-0.0.84 app/drivers/chrome/src/net.js
flok-0.0.83 app/drivers/chrome/src/net.js