This is a migrated thread and some comments may be shown as answers.

Telerik/jQuery problem

1 Answer 536 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 1
Matt asked on 16 Dec 2009, 07:27 PM
Using the following code blocks below, I get a JavaScript error in Opera (and also webkit browsers):  The code works properly in Firefox 3.5 and IE8.

I'm admittedly new to Telerik (I've inherited this code), but I do know that we also are using jQuery on our site, which might be interfering?  I have attempted to replace "$telerik.$" with "$j" and "$", and it does not work.

Can anyone point me in  the right direction?  Thanks.

Here is some relevant info:
Browser: Opera 10.10  Error: Type mismatch (usually non-object value supplied where object required)
Browser: Safari 4.0.4   Error: TypeError: Result of expression '$telerik.$' [undefined] is not a function.
jQuery: 1.3.2
Telerik: 2009.3.1103.35

HTML:
<head> 
<script type="text/javascript" src="/JS/jquery/jquery-1.3.2.min.js" ></script
<script type="text/javascript"
    var $j = jQuery.noConflict();  
</script> 
<!-- irrelevant stuff here --> 
</head> 
 
<body> 
<!-- irrelevant stuff here --> 
<script src="/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_RadScriptManager1_HiddenField&amp;compress=1&amp;_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-GB%3a1247b7d8-6b6c-419f-a45f-8ff264c90734%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%3aen-GB%3a4552b812-caf7-4129-9b53-8f199b5bce6c%3a16e4e7cd%3aed16cbdc%3af7645509%3bAjaxControlToolkit%2c+Version%3d3.0.30930.28736%2c+Culture%3dneutral%2c+PublicKeyToken%3d28f01b0e84b6d53e%3aen-GB%3ab0eefc76-0092-471b-ab62-f3ddc8240d71%3adc2d6e36%3ab14bb7d5%3aa3e10fa2%3a13f47f54%3a701e375f%3a1d056c78%3a3c55b13e%3ade51bc8f%3aa4313c7a" type="text/javascript"></script> 
<!-- irrelevant stuff here --> 
</body> 
 


JavaScript:
function blah(p) 
 { 
       var i; 
        for(i=eli.length-1; i>=0; i--) 
        { 
            if (eli[i].foo == (p)) 
            { 
                $telerik.$('#' + eli[i].lid).hide();     /*  ERROR ON THIS LINE */
                $telerik.$('#' + eli[i].gid).show(); 
            } 
        } 

1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 17 Dec 2009, 03:59 PM
Hello Matt,

Is it possible that you use an old registration of JQuery with recent version of RadControls for ASP.NET AJAX? Please verify that you register JQuery as explained in this article and note that in case you use some of the controls listed in the topic's table you do not need to include it explicitly.

Kind regards,
Sebastian
the Telerik team


Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Ajax
Asked by
Matt
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Share this question
or