jQuery conflicts with other js codes
Hi Folks,
i`m using jquery and ui to make some slider for my map.
My map is auto generated with ESRI webadf controls. It generates some
javascript automatically. and my jquery slider doesn`t work..
i keep getting this error.
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1;
Trident/
4.0)
Timestamp: Mon, 28 Sep 2009 07:50:52 UTC
Message: Object doesn't support this property or method
Line: 1585
Char: 4
Code: 0
URI: http://localhost:7777/webapp/js/jquery-1.3.2.js
the 1585 line is
if ( (match = Expr.match[ type ].exec( expr )) != null ) {
=========================================
if i remove map control so it doesn`t generates its javascript codes
my slider works fine..
here is my code
<link type="text/css" href="http://jqueryui.com/latest/themes/base/
ui.all.css" rel="stylesheet" />
<script type="text/javascript" src="/webapp/js/jquery-1.3.2.js"></
script>
<script type="text/javascript" src="/webapp/js/ui.core.js"></script>
<script type="text/javascript" src="/webapp/js/ui.slider.js"></
script>
jQuery.noConflict();
jQuery(document).ready(function () {
jQuery("#slider").slider({
orientation: 'vertical',
min:1,
max:5,
change: function(event, ui) { alert(ui.value); }
});
});
========================
btw my map scripts also generates some window.onload thing.. may be
this info will help you to figure it out.
Thanks all!