Prompt how to switch back to the original page after successful modification
Source: Internet
Author: User
The system prompts you how to return to the original page after the modification is successful. I first query the desired data through the query function, then select the data to be modified, click modify, and the modify window is displayed, then, click save to indicate that the modification was successful or failed. how can I return to the status after the query, instead of the initial status, after clicking confirm. Prompt how to switch back to the original page after successful modification
I first query the desired data through the query function, then select the data to be modified, click modify, and the modify window will pop up. then, I will save the prompt that the modification was successful or failed, how can I return to the status after query after confirmation, instead of the initial status. Share:
------ Solution --------------------
Currently, js is widely used to directly append/modify content to the current query page. Just like a quick reply to the DZ Forum, he adds the published content directly to the end of the current content in js, and some ajax comments are also similar. If the successful status is returned when adding the object, the content is changed dynamically to avoid further query. The query result list does not change.
------ Solution --------------------
From the perspective of user experience, this small data modification requires local refreshing, that is, asynchronous data transmission ajax.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.