Prototype and jQuery conflict resolution

And jquery-1.7.2.js conflict, but it must be used simultaneously when using MultiListBox components.

Find information from the Internet, possibly jQuery and Prototype conflict, last modified successfully, record it.

<script type="text/javascript" src="js/jquery-1.7.2.js"></script>
<link type="text/css" rel="stylesheet" href="/Css/jquery.windows-engine.css" />
<script type="text/javascript" src="/js/jquery.windows-engine.js"></script>

<% - due to the use of $ .window.create method, it cites jquery.windows-engine.js method has been tested, this js needs to be placed last. -%>

 

<% - page into Mes: MultiListBox Component -%>

<Mes:MultiListBox ID="MultiListBox1" runat="server" DataTextField="CONTACTS" DataValueField="TEL" SelectionMode="Multiple">
<FirstListBox>
<StyleSheet Width="140px" Height="160px" />
</FirstListBox>
<SecondListBox>
<StyleSheet Width="140px" Height="160px" />
</SecondListBox>
</Mes:MultiListBox>

 

<Script type = "text / JavaScript">
$ .noConflict (); // noConflict () method of control would release $ identifier, so that other script can use it
function changeSet (code, DCODE) {
jQuery.window .create ({id: "iframeChangeDeviceSet" , posx: 500, posy: 100, width: 600, height: 500, title: " modify parameter", type: "iframe", url: '? ChangeSet.aspx code =' + + code '& DCODE =' + DCODE});
}
</ Script>

 

Reference website:

https://teakki.com/p/57dfc10ed3a7507f975f34d0

https://www.w3school.com.cn/jquery/jquery_noconflict.asp

Guess you like

Origin www.cnblogs.com/webttt/p/12410896.html