X
X
Xalapyan2020-02-27 16:14:00
PHP
Xalapyan, 2020-02-27 16:14:00

How to make dynamic data output from the server?

Good day dear Khabrchane!
I have a thesis on creating a site for an online clinic registry. The site has one page with tabs. In each tab there will be a choice (For example, the choice of a city, a doctor, a polyclinic, etc.).
And so I have a question. How can I dynamically display content in these tabs?
For example, to select a city, and in the next tab, I displayed polyclinics of this particular city.
I write in PHP. JS did not use (Just what is in bootstrap).

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex, 2020-02-27
@Xalapyan

js did not use

And it will have to.
The algorithm is as follows:
When changing the city selection, JS makes a request to the server, it returns the content for the tab, and JS inserts this content into the desired tab.
The simplest option, with a minimum of JS:
https://api.jquery.com/load/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question