Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8692027
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T00:14:13+00:00 2026-06-13T00:14:13+00:00

I inserted the values in my html form. Even after successful insertion of data,

  • 0

I inserted the values in my html form. Even after successful insertion of data, its not visible in Developers Tools of chrome. Should I check for some setting or is there any cache problem with my browser. My database and tables are created but my values are not getting inserted. I am providing my code below.

$(document).ready(function() {

     var db = openDatabase("todolist", 1.0, "To Do List Database", 100 * 1024);
     db.transaction(function(transaction) {
         transaction.executeSql("CREATE TABLE IF NOT EXISTS list(" + "ID INTEGER PRIMARY KEY ASC," + " name TEXT NOT NULL," + " description TEXT," + " due DATETIME," + " start DATETIME);", []);
     });

     $("#submit").click(function() {
         var name = $("#taskname").val();
         //alert(name);
         var desc = $("#taskdesc").val();
         //alert(desc);
         var due = $("#taskdue").val();
         //alert(due);
         var start = $("#taskstart").val();
         //alert(start);
         db.transaction(function(transaction) {
             var sql = "INSERT INTO list(name,description,due,start )VALUES(?,?,?,?)";
             transaction.executeSql(sql, [name, desc, due, start], function() {

                 alert("Values Inserted")
             }, error);
         });
     });

     function error(transaction, err)

     {
         alert("DB error : " + err.message);
         return false;
     }
 });
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T00:14:14+00:00Added an answer on June 13, 2026 at 12:14 am
    var x = {};
    x.web = {};
    db= null;
    x.web.open=function()
    {
        //alert("hiiii")
        db= openDatabase("amith",1.0,"To Do List Database",100*1024);
    }
    x.web.create=function()
    {
        var data=db;
        //alert(data)
        data.transaction(function(transaction){
        transaction.executeSql(
        "CREATE TABLE IF NOT EXISTS type("+
        "ID INTEGER PRIMARY KEY ASC,"+
        " name TEXT NOT NULL,"+
        " description TEXT,"+
        " due DATETIME,"+
        " start DATETIME)");
        });
    
    }
    x.web.addTodo = function(name,desc,due,start) 
        {
            var data1 = db;
            data1.transaction(function(tx){
            var sql="INSERT INTO     
       type(name,description,due,start)VALUES(?,?,?,?)";
            tx.executeSql(sql,[name,desc,due,start],function(){
            //alert("Values Inserted")
            },error);
            });
        }
     function error (transaction, err) 
    
        {
            alert ("DB error : " + err.message);
            return false;
        }
    
    function init()
    {
        x.web.open();
        x.web.create();
    }
     function addTodo() 
    {
        //alert("toodod")
        var name = document.getElementById("taskname").value;
        var desc= document.getElementById("taskdesc").value;
        var due= document.getElementById("taskdue").value;
        var start=document.getElementById("taskstart").value
        //alert(name);
        x.web.addTodo(name,desc,due,start);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does std::map move around already inserted values when inserting new data ?
I have inserted this form with multiple checkbox items which collects some values, What
I am trying to insert values in database and values are not being inserted,
In my ASP.NET MVC 3 app I have a page where, after its form
Below is my view page. without <form> tag when I insert the values, its
I have an HTML form which submits values to the following PHP file, which
i have this page inserting data from html form. no error is showing but
I have created table and inserted values as below. create table mytable (id INT,
I had an old mysql code where it successfully inserted values into the database.
I have created two tables & inserted values as shown below . Table 1

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.