开发者

Best Approach For Updating Page from php

开发者 https://www.devze.com 2023-03-20 10:22 出处:网络
I have a script the processes about 100 rows of data within a foreach loop.I would like to have a page that has a submit button and as th开发者_JAVA百科e script successfully iterates it would append d

I have a script the processes about 100 rows of data within a foreach loop. I would like to have a page that has a submit button and as th开发者_JAVA百科e script successfully iterates it would append data from that row to a div on the page- giving some feedback to the user. It's different than most of the examples Im seeing online in that the php script would be posting multiple times instead just once. thanks for any input


Due to the nature of HTTP, your best bet might be to use Ajax.

My thoughts would be to send an Ajax request to your script, and then once the script is done and sends the response, parse the response and put it into your div.


Make 2 calls to php from jQuery

0

精彩评论

暂无评论...
验证码 换一张
取 消