D
D
Denis Tomsky2015-11-16 14:15:04
PHP
Denis Tomsky, 2015-11-16 14:15:04

How to display data from mysql via JS in HTML5?

Good day! Here I am developing an application on Intel XDK and those who programmed on Intel XDK faced the problem of PHP support. And immediately the question arises how to display data from mysql through JS in HTML5? Help me please!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
riot26, 2015-11-16
@tomskiydenis

Only by Ajax requests to the server side (in php, python - it doesn't matter)

R
Rafael™, 2015-11-16
@maxminimus

Js in html5 - they don't say so
Html is a static document markup language
To get data from the server, the client web application needs to contact the server at the right address
The server sends data as a text string (json innerHtml) by Ajax
or as html with a normal page request
Inside html can contain data as a string of text (data-)
Javascript of your web application can load any additional scripts with data and programs by creating script elements by loading js-files at the address from the server

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question