PHP: Display a “loading” page while a php script is executing

后端 未结 3 673
忘了有多久
忘了有多久 2021-01-16 02:14

Here is what I\'ve got right now...

I have a web page that when accessed, it connects to surveygizmo.com via their open API, retreives a whole lot of data, and then

3条回答
  •  悲&欢浪女
    2021-01-16 03:01

    You'll want to take a look at AJAX. The solution is to send the browser a "loading" page, which contains javascript that shows the loading message, and then connects to the actual data generating server-side script asynchronously. When you have received and processed the data, you can insert it into the DOM and remove the loading message. Googling for XMLHttpRequest will get you the details.

提交回复
热议问题