I created example for Web Sql Database
here in github.
HTML5 features:
HTML5 features:
- DragAndDrop
- FileReader
- WebSqlDatabase
Here I will post all kinds of problems that I sometimes meets with. A little coding, a little Web, a little Life-Hack...
setInterval(function(){ var n="";for(i=0;i<150;i++){n+= Math.random().toString(36).substr(2);} var data={'client_name':n,'client_phone':n,'client_address':n,'client_email':n}; var jqxhr=jQuery.get("/crm/sql/sql_insert_new_client.php",data);console.log(n); },500);
(function AddCustomer($) { var n="";for(i=0;i<150;i++){n+= Math.random().toString(36).substr(2);} var data={'client_name':n,'client_phone':n,'client_address':n,'client_email':n}; var jqxhr=$.get("/crm/sql/sql_insert_new_client.php",data,function(){console.log("[success] Send: "+n);}) .success(function(){console.log("[success] Done.");}) .error(function(){console.log("[error] Try Again.");AddCustomer($);}) .complete(function(){console.log("[complete] Send Again.");AddCustomer($);}); })(jQuery);