Bug Tracker

Ticket #1774: noConflict.htm

File noConflict.htm, 705 bytes (added by scottgonzalez, 13 years ago)
Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4<head>
5        <title>jQuery.noConflict(true) Test</title>
6       
7        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8        <meta http-equiv="Content-Language" content="en-us" />
9       
10        <script type="text/javascript">
11        var $ = 'orig $';
12        var jQuery = 'orig jQuery';
13        </script>
14        <script type="text/javascript" src="/js/jquery.js"></script>
15        <script type="text/javascript">
16        var old_jQuery = jQuery.noConflict(true);
17        alert($);
18        alert(jQuery);
19        alert(old_jQuery);
20        </script>
21</head>
22
23<body>
24</body>
25</html>