Hi. I have a calculate.js javascript file where all the function that execute the calculation is consist in this file. Now, I want to retrieve a data from the database for javascript calculation and be done in this calculate.js file. I have search a lot of methods to do this but most said cannot do this from a client-side. Is it possible? How to achieve this? Thanks in advance.
star_lavender 0
Light Poster
Recommended Answers
Jump to PostNo. Most said correct. Database is in the server. Javascript works on client's machine. The only way is to have some script running on server (like php) that would retrieve data from database and pass it to javascript.
Jump to PostHi. I have a calculate.js javascript file where all the function that execute the calculation is consist in this file. Now, I want to retrieve a data from the database for javascript calculation and be done in this calculate.js file. I have search a …
Jump to PostHi, this may or may not help ...
You have to make sure your database tables/fields line up between all these files and your database ... in this example I am using ID, username, and email to pull data in and out of an HTML file without a full …
All 11 Replies
kracko 0
Light Poster
star_lavender 0
Light Poster
Airshow 416
WiFi Lounge Lizard Team Colleague
mikecronauer 0
Newbie Poster
Saqib_J 0
Newbie Poster
star_lavender 0
Light Poster
star_lavender 0
Light Poster
Airshow 416
WiFi Lounge Lizard Team Colleague
star_lavender 0
Light Poster
Airshow 416
WiFi Lounge Lizard Team Colleague
star_lavender 0
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.