Icontem

v3sdk: Store and retrieve objects in V3ctor WareHouse

Recommend this page to a friend!
  Info   View files Example   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2016-12-02 (2 years ago) RSS 2.0 feedNot enough user ratingsTotal: 28 All time: 521 This week: 20Up
Version License JavaScript version Categories
v3sdk 1.0Freeware5AJAX, Web services
Description Author

This object can store and retrieve objects in V3ctor WareHouse.

It can send HTTP requests to V3ctor WareHouse Web server via AJAX to perform several types of operations.

The object can take a array of properties and send requests to create a new object or update an existing object.

It can also delete objects by ID, as well retrieve objects by ID or a given property criteria.

Innovation Award
JavaScript Programming Innovation award nominee
August 2016
Number 4
Browser side applications that need to store persistent information on databases need to send the information to a server that performs the storage information.

This package can send AJAX request to a V3ctor WareHouse server so it can store and retrieve objects persistently on server side databases.

Manuel Lemos
Name: Yorch Ponce <contact>
Classes: 2 packages by
Country: Mexico Mexico
Age: 38
All time rank: 1758 in Mexico Mexico
Week rank: 13 Up3 in Mexico Mexico Up
Innovation award
Innovation award
Nominee: 2x

Details

V3ctor JavaScript Sdk

Description

V3ctor WareHouse JavaScript Sdk.

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 V3SDK.js to HTML Document.


<script src="V3SDK.js"></script>

Example


v3 = new V3SDK("https://v3-yorch.rhcloud.com/", "lYltuNtYYbYRFC7QWwHn9b5aH2UJMk1234567890");

v3obj = {client: "V3ctor Js SDK", message: "Hello World"};

// New Object
v3.newObject("jsdk", v3obj, function(data){
  console.log(data);
  
  console.log(V3SDK.getId(data));
});

var id = "57a9f2e4409b60347e8b4567";

// Find by Id
v3.findObject("jsdk", id, function(data){
  console.log(data);
});

var v3Query = {message: "Hello World"};

// Query
v3.query("jsdk", v3Query, function(data){
  console.log(data);
});

v3obj = {msg: "msg updated"};

// Update Object by Id
v3.updateObject("jsdk", id, v3obj, function(data){
  console.log(data);
});

// Delete Object
v3.deleteObject("jsdk", id, function(data){
  console.log(data);
});

References

https://en.wikipedia.org/wiki/JSONP

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

  Files folder image Files  
File Role Description
Accessible without login Plain text file example.html Example Documentation
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Example script
Plain text file V3SDK.js Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:28
This week:0
All time:521
This week:20Up