ASP submits some data without refreshing

Updated on technology 2024-04-02
11 answers
  1. Anonymous users2024-02-07

    This is what you're going to use with ajax.

  2. Anonymous users2024-02-06

    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.

  3. Anonymous users2024-02-05

    "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.

  4. Anonymous users2024-02-04

    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.

  5. Anonymous users2024-02-03

    Yes, use ajax, commit the changes, and then use js to refresh the page you want to refresh, see .

  6. Anonymous users2024-02-02

    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:

  7. Anonymous users2024-02-01

    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!

  8. Anonymous users2024-01-31

    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:

  9. Anonymous users2024-01-30

    ASP+JS no-refresh calls to process page content require an AJAX implementation:

    The ajax above is the drop-down menu linkage method. . .

  10. Anonymous users2024-01-29

    Change the method to this.

    function showpage(n)

    with innerhtml

  11. Anonymous users2024-01-28

    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).

Related questions