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

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.