-
This is what you're going to use with ajax.
-
Does the no-refresh commit data mean that the page is not automatically refreshed after the AJAX request is sent to the server?
Under normal circumstances, the page will not be automatically refreshed, and the ajax will go to the ** function after sending the request. success:function(). **The reload method of refreshing the page is written in the function, and it will be refreshed.
I've been in this situation because the submit button is written in the form tag. Check the document, so that the write commit data will be automatically refreshed. Just move this button out of the form tag.
If there is no refresh statement written in the ** function of ajax, and this happens, it is recommended to search for the document according to the actual situation to see why it is automatically refreshed.
-
"get",url,true);Get the URL information in GET modeWhen you submit a form, execute the function to determine whether the form is submitted in GET mode and if it is submitted in POST mode.
response = "|");;
At the time of this sentence, request[0] will return empty if the information submitted in get mode is not obtained, because the data is not passed to the server in the way of get.
Either change the way the form is submitted to try it, or make a judgment on the acquisition method to filter the acquisition method.
-
You're looking in the wrong direction. Your program is a BS mode application, and the database is transparent to the client, and there is no dynamic or static refresh. When you talk about dynamic refresh, you should refer to the dynamic refresh effect of data on the client's web page.
For example, if a user selects certain records in the people list on the page, and clicks the delete button, the records are deleted immediately, instead of reloading the page itself once to update the page display.
You go to the ajax, or xmlhttprequest object, that's what you need.
-
Yes, use ajax, commit the changes, and then use js to refresh the page you want to refresh, see .
-
It's hard to write this specifically, but no-refresh is based on AJAX technology, not just ASP, you look it up on the Internet"AJAX tutorials"bar.
I'll write you a sample:
-
If you need to read without refreshing, you can use ajax, if the data is constantly updated, then it is recommended that you add a scheduled update of ajax, or a button to trigger a refresh of ajax!
-
It's hard to write this specifically, but no-refresh is based on AJAX technology, not just ASP, you look it up on the Internet"AJAX tutorials"bar.
I'll write you a sample:
-
ASP+JS no-refresh calls to process page content require an AJAX implementation:
The ajax above is the drop-down menu linkage method. . .
-
Change the method to this.
function showpage(n)
with innerhtml
-
I haven't made ASP, but it's probably a page caching problem, you set a breakpoint there in the background, and the page clicks the link to see if it jumps to the breakpoint? If it's a caching problem, you can try it with a random number "&randomid="+ random number (or add milliseconds).