Jquery-standalone conflicts with Struts2-jquery-plugin

Source: Internet
Author: User
Tags jquery library

To fully reflect the easy-to-use interaction functions of the software on the UI, standalone jquery and Struts2-jquery-plugin are used for verification (available regular expressions) and auto-completion. Auto-completion is performed in real time from the database.

Independent functions are implemented. Because they are not completed on a jquery library, they cannot be implemented simultaneously after they are put together. As a result, the plug-in function cannot be run.

Later, when thinking about this problem, I felt that it would be difficult to solve it.

First, the jquery library must be unique. I now have two libraries. In fact, only one library is enough. It is best to directly use the libraries in plugin.

However, the Library is imported using the tag library.

 
<% @ Taglib prefix = "S" uri = "/Struts-tags" %> <% @ taglib prefix = "SJ" uri = "/Struts-jquery-tags" %>

To achieve an excellent verification function, I want to import the library as follows:

<SCRIPT src = "/JS/validation/jquery-1.6.min.js" type = "text/JavaScript"> </SCRIPT> <SCRIPT src = "/JS/validation/jquery. validationengine. JS "type =" text/JavaScript "> </SCRIPT> <SCRIPT src ="/JS/validation/jquery. validationEngine-zh_TW.js "type =" text/JavaScript "> </SCRIPT> <script language =" JavaScript "> $ (document ). ready (function () {$ ("# create_workorder_form "). validationengine ({promptposition: "centerleft", scroll: false })});

Therefore, the merge of the two will become very complex!

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.