Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Search results

  1. A

    JavaScript Postman error or code syntax

    I don’t want to give up on this project with db.run. Unless, a person like you help me, it is difficult to understand. This is few tiring days to grasp the flow of logic, syntax right.
  2. A

    JavaScript Postman error or code syntax

    I changed as follows to see errors on VB Terminal. PS C:\Users\aariy\guidedPrj> node database.js Connected to the SQlite database. SQLITE_ERROR: table customer already exists undefined:0 Error: SQLITE_ERROR: table customer already exists --> in Database#run('CREATE TABLE customer (\n'...
  3. A

    JavaScript Postman error or code syntax

    How about this. Still, running node database.js gives me the terminal same var sqlite3 = require('sqlite3').verbose() var md5 = require('md5') const DBSOURCE = "db.sqlite" var sqlite3 = require('sqlite3').verbose() var md5 = require('md5') const DBSOURCE = "db.sqlite" let db = new...
  4. A

    JavaScript Postman error or code syntax

    Thanks I changed as follows. let db = new sqlite3.Database(DBSOURCE, (err) => { if (err) { // Cannot open database console.error(err.message) throw err } else { console.log('Connected to the SQlite database.') db.run(`CREATE TABLE customer (...
  5. A

    JavaScript Postman error or code syntax

    I love your help. Following was a one that you helped me to understand. Still, I am at the very beginner stage to expand. It is a big struggle here. I expected the POSTMAN to throw errors. <script> var sidenav = document.getElementById("sidenav"); menu.onclick =...
  6. A

    JavaScript Postman error or code syntax

    Thank you so much I ran and have attached the results. No errors.
  7. A

    JavaScript Postman error or code syntax

    Yes, I am in db.run. What do you suggest. I want to expand on this first and then, to learn SQL. I am looking for a source for the proper syntax. Still no luck. Thanks
  8. A

    JavaScript Postman error or code syntax

    Thanks for correcting. Hope, you can help and guide me in the correct direction. Going forward, I included a validation to credit card number and Email, as shown below. I just guessed and POSTMAN didn't give any message. I looked for a a site to see the proper format. (type="email"...
  9. A

    JavaScript Postman error or code syntax

    I am leaning. Following was the one, that I was following. GitHub - opencourse5tutor/products-api: A service to manage product API s If you look at the code carefully, specially following. You will see that after db.run('. It is an apostrophe character. db.run(`CREATE TABLE customer After...
  10. A

    JavaScript Postman error or code syntax

    Thanks for the prompt reply with explanation as well. I find it hard to understand this syntax. Getting better acquainted little by little. I put a terminator as follows, after trying to move the closing parenthesis to the end which resulted in VB giving error messages...
  11. A

    JavaScript Postman error or code syntax

    Hi: I am trying to get an understanding of server side programming. I am trying to test my POST Api with POSTMAN. 1. created server.js 2. created database.js 3. ran "npm init -y" 4. ran "npm install express" 5. ran "npm install sqlite3" 6. ran "node server.js" I have included the coding of...
  12. A

    Trying to have a space between text and image

    Hello friends: I am trying to have a space between the text and image border. It doesn't happen with my padding. When I remove, border CSS, I can have space between space between text and image. Thanks for helps. <!DOCTYPE html> <html> <head> <title>Learning Example</title> <style>...
  13. A

    My cursor doesn't move to drop down sub items

    Thanks a lot. Worked.
  14. A

    My cursor doesn't move to drop down sub items

    Hello friends: there is dropdown items under "About Us" and "Services". When I move the cursor to either "About Us" or "Services", it shows the sib items under it. Once, I tries to move the cursor to subitems, it disappears. Thanks for your helps. <!DOCTYPE html> <html lang="en">...
  15. A

    JavaScript How to put a delay

    Thanks for the explanation. I tried with setTimeout() too, to see not working. Regards Anura
  16. A

    JavaScript How to put a delay

    document.getElementById("sidenav").style.transitionDelay = "1s"; This code worked.
  17. A

    JavaScript How to put a delay

    <script> var lastScrollTop = 0; window.addEventListener("scroll", function(){ var st = window.pageYOffset || document.documentElement.scrollTop; if (st > lastScrollTop){ closeNav(); } else { delay(3000); openNav(); } lastScrollTop = st <= 0 ? 0 ...
  18. A

    JavaScript JavaScript help

    Thank you very much. Could please expand that shorthand code to reflect the normal way and have the full set codes. Hope, that will help me to understand the real flow of checks and branching out. Thanks again. Regards Anura
  19. A

    JavaScript JavaScript help

    Thanks I copied the following from a Google search. var lastSrollTop = 0; window.addEventListener("scroll", function(){ var st = window.pageYOffset || document.documentElement.scrollTop; if (st > lastScrollTop){ // downscroll code } else { // upscroll code }...
  20. A

    JavaScript JavaScript help

    Yes, from the sound "wheel" and looking at the phone to see a something related to it. Is there a suggestion for to overcome to work both on phone as well as on the computer. Thanks Regards Anura
Back
Top Bottom