Ajax dynamic delivery JSP and other pages using ID identification to pass objects

Source: Internet
Author: User

This article for everyone to introduce the use of AJAX Dynamic transfer JSP page, JS Jax writing, using ID to identify the delivery of objects

Ajax Dynamic Delivery page, JS Ajax writing, using ID to identify the delivery object For example: Now there is a demand, a page, divided into about two pieces, the left navigation menu has a user list information function button, want to on the right without a refresh situation load user data, list display. We define two JSP main.jsp userlist.jsp main.jsp has a div id= ' userlist ' layer on the right side, responsible for accepting userlist.jsp userlist processing list data for loops by passing over Jstl    foreach tags can be main.jsp Click the User list button to trigger the following JS Doajax ("userlist", access requests, to the background processing, background query db to get the data, passed to the userlist.jsp page); This allows users to see the current user data loaded without refreshing, avoiding the usual JSON processing or ifram loading
Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

Contact Us

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.