netWf: API client to access netDB databases

Recommend this page to a friend!
  Info   Documentation   View files Files   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 51 All time: 498 This week: 3Up
Version License JavaScript version Categories
netwf 1.0Freeware5Databases, Web services
Description 

Author

This object is a API client to access netDB databases.

It takes on API key and can send HTTP requests to a netDB database API to perform several database operations. Currently it can:

- Get table field value by key
- Get the first, last, next and previous row of a table
- Execute a give remote procedure or script

It can also get a key using a given user name and password and store it the browser local storage.

Innovation Award
JavaScript Programming Innovation award nominee
September 2016
Number 4
netDB is a server side API that can manipulate of databases of table records.

This object an can call a netDB API to manipulate the database table records from the browser side in JavaScript.

Manuel Lemos
Picture of Yorch Ponce
Name: Yorch Ponce <contact>
Classes: 2 packages by
Country: Mexico Mexico
Age: 43
All time rank: 1768 in Mexico Mexico
Week rank: 6 Up1 in Mexico Mexico Up
Innovation award
Innovation award
Nominee: 2x

Documentation

netWf 4 JavaScript

Description

netDb Web Framework JavaScript Client.

Requirements

Developer Documentation

JsDoc.

Installation

Add Jquery to HTML Document.


<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>

Add netWf.js to HTML Document.


<script src="/web/js/netWf.js"></script>

Example


api = new netWf("12345678987654321"); 

// Get Rows with limit
api.table('test', 10,
    function(response, status){
      if (status == "success"){
        console.log(response);
      }
      else
        console.log("Error in Status");
    });

// Get one row by id
api.tableById('test', 'id', 958,
    function(response, status){
      if (status == "success"){
        console.log(response);
      }
      else
        console.log("Error in Status");
    });

// Get First Row
api.first('test', 'id', '*',
    function(response, status){
      if (status == "success"){
        console.log(response);
      }
      else
        console.log("Error in Status");
    });

// Get Previous Row
api.previous('test', 'id', 10, '*',
    function(response, status){
      if (status == "success")
        console.log(response);
      else
        console.log("Error in Status");
    });

// Get Next Row
api.next('test', 'id', 10, '*',
    function(response, status){
      if (status == "success")
        console.log(response);
      else
        console.log("Error in Status");
    });

// Get Last Row
api.last('test', 'id', '*',
    function(response, status){
      if (status == "success")
        console.log(response);
      else
        console.log("Error in Status");
    });

// Execute Stored Procedure
api.procedure('usp_instest', {'@number':666},
    function(response, status){
      if (status == "success"){
        console.log(response);            
      }
      else
        console.log("Error in Status");
    });

// Execute SQL Script
api.script('script1.sql', {'@number':666},
    function(response, status){
      if (status == "success"){
        console.log(response);            
      }
      else
        console.log("Error in Status");
    });
    

References

https://es.wikipedia.org/wiki/Representational_State_Transfer

P.D. Let's go play !!!


  Files folder image Files (4)  
File Role Description
Accessible without login Plain text file LICENSE Lic. License text
Plain text file netWf.js Class Class source
Plain text file netWf_pg.js Class Class source
Accessible without login Plain text file README.md Doc. Example

 Version Control Unique User Downloads Download Rankings  
 100%
Total:51
This week:0
All time:498
This week:3Up