Quantcast sử dụng đồng thời Jquery và Extjs trong asp.net

sử dụng đồng thời Jquery và Extjs trong asp.net

by Neon Quach 4. January 2011 14:32

Bởi mặc định Jquery sử dụng kí tự $ (dollar sign) cho các selector, nhưng trong extjs cũng sử dụng ký tự $ vì mục đích của họ, và đây là cách mà chúng ta cần phải include thứ tự các script để extjs có thể làm việc cho cả 2 jquery và extjs.

Do mình sử dụng master page nên thứ tự js để có thể giúp jquery có thể làm việc với extjs là:

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
<script src="../ext-3.2.0/adapter/jquery/ext-jquery-adapter.js" type="text/javascript"></script>
.....
<script src="../ext-3.2.0/adapter/ext/ext-base.js" type="text/javascript"></script>
<script src="../ext-3.2.0/ext-all.js" type="text/javascript"></script>

include extjs order in master page

Sau đó chúng ta có thể write js code sử dụng thư viện jquery.

javascript code using jquery library with extjs included

Ngoài ra để include các library khác để làm việc chung với Extjs, xem thêm file INCLUDE_ORDER.txt trong library extjs

Happy Extjsing!

Tags: , ,


Categories: extjs | jquery | open source

blog comments powered by Disqus

About me

I'm  currently employed as Software developer at devinition.com and also a Microsoft Certified Technology Specialist (MCTS), Microsoft Certified Professional Developer (MCPD) in Net Framework 2.0 and 3.5: Web Applications and MCTS .NET Framework 3.5, ADO.NET Applications

Powered by BlogEngine.NET 2.5.0.5 - Eco Theme by n3o Web Designers