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

[Solved] javascripts and combined method

0 Answers 46 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Giedrius
Top achievements
Rank 1
Giedrius asked on 15 Apr 2010, 03:49 PM
Hi, i have problem with javascripts.
I'm including my javascripts like this:

... 
  <%             
        Html.Telerik().ScriptRegistrar() 
            .jQuery(false) 
            .DefaultGroup( 
                group => group.DefaultPath("~/Content/Script/")                     
                    .Add("~/Content/Script/custom.js") 
                    .Add("~/Content/Script/jqModal.js") 
                    .Add("~/Content/Script/jquery.tipsy.js") 
                    .Add("~/Content/Script/jquery.listnav-2.1.js") 
                    .Add("~/Content/Script/columnizer.js") 
                    .Combined(true) 
                    .Compress(true) 
                    .CacheDurationInDays(30) 
                    ).Render(); 
             %> 
</body> 
jQuery is loaded from CDN separatly
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> 

Problem is, that if I comment out Combined(true), everything works ok. Else it gives to errors:

firefox:





ie:
Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET CLR 1.1.4322; OfficeLiveConnector.1.4; OfficeLivePatch.1.3)
Timestamp: Thu, 15 Apr 2010 14:46:37 UTC


Message: Object expected
Line: 625
Char: 1
Code: 0
URI: http://localhost:9090/asset.axd?id=WwEAAB-LCAAAAAAABADtvQdgHEmWJSYvbcp7f0r1StfgdKEIgGATJNiQQBDswYjN5pLsHWlHIymrKoHKZVZlXWYWQMztnbz33nvvvffee--997o7nU4n99__P1xmZAFs9s5K2smeIYCqyB8_fnwfPyJ-8UfT9qNHH2WrVVlMs7aolnffbf90dpk107pYtR-NPrqkr_d2dnfGu-N7Ow_pg-lHj9p6ndMvs48e3dsZfUQ_vveLP1pRu5Nq2ebL9u5r8_I5f1V99IiaLanBdN201WL8081Hv2TEn-_K5z_9i76oZlnpfbFnvljn9fW4LVbNtfftveDbsmjaZXa5vUc4ujb72mVVrhfL4gd57X13X75r8zKvi7fjabVYVEvv-0_D7y_qYuZ9-yDy7XlRtvTX8oLbff-XfP-X_D8CfR7tWwEAAA%3d%3d


Message: Object doesn't support this property or method
Line: 229
Char: 1
Code: 0
URI: http://localhost:9090/User

Any clue, why it is so?




Tags
General Discussions
Asked by
Giedrius
Top achievements
Rank 1
Share this question
or