Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

179
Views
Change path for websql database and access it from a different location on the server (JavaScript)

I am running apache on ubuntu linux, and I would like to be able for my website to access the websql database.

How might I access it from the same Javascript in two webpages (Namely get data from index.html and access it in mylist.html)

Here is my code for now without retrieving data:

var db = openDatabase('articles', '1.0', 'Saved Articles', 2 * 1024 * 1024); 

db.transaction(function (tx) {   
  tx.executeSql('CREATE TABLE IF NOT EXISTS ARTICLES (id unique, log)');
  tx.executeSql('INSERT INTO ARTICLES (id, article) VALUES ('+ac.parentNode.innerHTML+')'); 
});
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!