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

ScriptManager eating my javascript?

3 Answers 153 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
DogEars
Top achievements
Rank 2
DogEars asked on 02 Jan 2009, 05:41 AM
I have a really simple scenario for a menu using the MooTools framework. Everything works perfect until I add a RadScriptManager to support the use of a RadGrid.

My first line of script fires the menu to run the animation, but even though I have added references to the JS files I'm using, it still refuses to work with the ScriptManager on the page.

Where am I going wrong?

<script type="text/javascript">    default_accordion_id = 0;</script> 
 
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server"
        <Scripts> 
            <asp:ScriptReference Path="~/JS/script.js" /> 
            <asp:ScriptReference Path="~/JS/mootools.v1.11.js" /> 
        </Scripts> 
    </telerik:RadScriptManager> 

    
Thanks.

3 Answers, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 05 Jan 2009, 03:00 PM
Hello Donald,

I am not quite sure what is the exact problem you report and also what is the reason - you say that there is some problem, you say that the page refuses to accept the RadScriptManager but you have not provided the error details and stack trace.

I am also not sure why you need the RadScriptManager for the RadGrid - the RadGrid should perfectly work with the standard asp ScriptManager control. In case you experience problems when using the RadGrid with integration of asp ScriptManager, please provide details about this problem.

This being said, in case you need further assistance, please provide more details and screenshots of the problem or best - open a new support ticket and send us a sample reproduction demo along with the detailed reproduction steps.

Sincerely yours,
Svetlina
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
DogEars
Top achievements
Rank 2
answered on 05 Jan 2009, 03:08 PM
Hi there,

Thanks for the reply, and I have discovered the issue.

I implemented a javascript menu using MooTools and have since discovered that it is incompatible with the ASP.Net AJAX framework. And I did try both a standard scriptmanager and the RadScript as well, just in case.

Thanks for the reply.
0
Omar
Top achievements
Rank 1
answered on 08 Aug 2011, 05:44 AM
Hello,

I came across this same problem using an autosuggest script and mootools and the RadscriptManager. The austosuggest I used is http://www.theWittyRejoinder.com/autoSuggest.php .

I overcame the weird javascript errors by enclosing the imported scripts into the scriptreference tag within the RadScriptManager.

These imports weren't working. All sorts of weirdness:
<script src="Scripts/mootools-core-1.3.2-full-compat-yc.js" type="text/javascript"></script>
<script src="Scripts/autoSuggest.js" type="text/javascript"></script>
<form id="form1" runat="server">
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
 </telerik:RadScriptManager>



Solved JavaScript weirdness below.

<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    <Scripts>
        <asp:ScriptReference Path="Scripts/mootools-core-1.3.2-full-compat-yc.js" />
        <asp:ScriptReference Path="Scripts/autoSuggest.js" />
    </Scripts>
</telerik:RadScriptManager>



Hope this helps.  :o)
Tags
General Discussions
Asked by
DogEars
Top achievements
Rank 2
Answers by
Svetlina Anati
Telerik team
DogEars
Top achievements
Rank 2
Omar
Top achievements
Rank 1
Share this question
or