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

JQuery and Scaleable Vector Graphics

3 Answers 109 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Leonard Jones
Top achievements
Rank 1
Leonard Jones asked on 24 May 2011, 01:07 PM

This post replaces an earlier one with the same title

I am developing (Visual Studio 2010) a web application aimed at browsers with SVG capability, including Internet Explorer 9. I am using Telerik's ASP.NET Ajax (version Q2 2010) and loading the jQuery V1.4.2 javascript library into the page via the RadScriptManager.

<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    <Scripts>
        <%--Needed for JavaScript IntelliSense in VS2010--%>
        <%--For VS2008 replace RadScriptManager with ScriptManager--%>
        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
    </Scripts>
</telerik:RadScriptManager>

I would also like to use a jQuery plug-in to implement the SVG stuff see http://keith-wood.name/svg.html. This is an excellent plug-in but it has a small problem with IE9 (see the 'SVG DOM' tab in the previous link ) which requires some limited modifications to the jQuery core script.The mods are clearly indicated in the document (click on the 'show mods' button).

Since the jQuery script is contained in a compressed format in the Telerik assembly, I cannot get at it to incorporate the required changes.

It would help me (and many other developers too) if Telerik could make the required modifications to the jQuery code and make it available as a download from the Software Library.

This would enable me to replace

<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />

with

<asp:ScriptReference Path="~/Scripts/Telerik/jquery-svg.js" />


Many thanks

Len Jones

3 Answers, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 27 May 2011, 11:11 AM
Hi Leonard Jones,

There is already a modified version of jQuery on the site you linked to. So you can directly download the file and reference it through RadScriptManager:
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    <Scripts>
        <%--Needed for JavaScript IntelliSense in VS2010--%>
        <%--For VS2008 replace RadScriptManager with ScriptManager--%>
        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
        <asp:ScriptReference Path="~/path_do_modded_jquery" />
        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
    </Scripts>
</telerik:RadScriptManager>

I believe this should do the work. Is there anything that I am missing?

Regards,
Simon
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Leonard Jones
Top achievements
Rank 1
answered on 27 May 2011, 01:35 PM
I have tried your suggestion but unfortunately it does not work. I suspect that the RadScriptManager has already downloaded the jQuery.js file before attending to the additional script files in its associated asp:ScriptReference tags. 

My investigations show that the RadScriptManager loads (in addition to other script files) Telerik.Web.UI.Common.jQuery.js which incorporates jQuery V1.4.2 - the file that requires changing. Since Telerik.Web.UI.Common.jQuery.js is embedded in Telerik.Web.UI.dll, I can't get at it to make the changes. This would mean that my original request would not solve the problem either, and that a revised version of Telerik.Web.UI.dll would be required - unless there is a work around. I realise that this is a big request but I would still ask you to help in my hour of need.

Many thanks

Len Jones
0
Leonard Jones
Top achievements
Rank 1
answered on 28 May 2011, 10:19 AM
Problem Resolved. I now have Telerik's ASP.NET Ajax tools working with the SVG library

As with many user's problems it was my code and not Telerik's that was at fault. I had included the following statement in my application jscript.

 

  • $ = $telerik.$; // see Telerik's jQuery documentation

which I have now removed.

 

I'm new to this jQuery stuff and I thought it was required - obviously it isn't.

I would like to express my gratitude to the Telerik support team for their assistance on this and previous questions. It's a difficult task, dealing with problems at a distance and I appreciate all your efforts.

Rgds

Len Jones

Tags
Ajax
Asked by
Leonard Jones
Top achievements
Rank 1
Answers by
Simon
Telerik team
Leonard Jones
Top achievements
Rank 1
Share this question
or