D
D
dr_aslanoff2015-09-15 13:12:58
JavaScript
dr_aslanoff, 2015-09-15 13:12:58

How to contact the server via HTML?

I am developing a mobile application in html. I built it via build.phonegap.com . The design of the pages was filled with test data that are fixed in the page code, and are edited only from there. I also need to dynamically pull out information from the database, and display it on the page. To do this, you need to respectively contact the server, and, upon request, pull out information. How to make this call to the server? Unfortunately, Cordova requires the main file to be .html. If it was possible to use php, then there would be no problems.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
IvanOne, 2015-09-15
@IvanOne

I think jquery and its ajax submit function will help you. Well, or native js www.w3schools.com/ajax

V
Vlad Harbarchuk, 2015-09-15
@SilvaGT

https://developer.mozilla.org/en-US/docs/Web/API/X...

G
Gregory, 2015-09-15
@grigruss

Let the file be called *.html, and inside let it be <?php ... ?>. Apache2 supports this. www.jino.ru/help/faq/php/php-in-html/#php-in-html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question