Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 8 of 8

Thread: jQuery and V9 Problems

  1. #1
    mbertulli is offline Senior Member
    Join Date
    Aug 2008
    Posts
    243

    Default jQuery and V9 Problems

    Anybody else try and drop jQuery into Version 9 ML?

    I'm getting tons of javascript errors with postbacks. In particular, the product page Add To Cart no longer works properly...
    Matthew Bertulli
    Demac Media
    mbertulli@demacmedia.com
    Custom Web Design & E-Commerce Development
    AspDotNetStoreFront Platinum DevNet Partner
    ----

    Custom Skinning & Design
    Web Services Integration
    Custom Reporting
    Salesforce.com eCommerce AspDotNetStoreFront Integration

  2. #2
    hosteddesign is offline Junior Member
    Join Date
    Mar 2010
    Posts
    3

    Default I have had some issues

    I have not explored these in depth however I too have had some issues when I tried 2 simple sliding .js's

    In older versions I recall the need to edit the editor config file. In version 9 this config files is no longer there.

    Are scripts now permanently allowed?
    I could not see anything in appconfigs either.

    Cheers!
    Brent

  3. #3
    AspDotNetStorefront Staff - Scott's Avatar
    AspDotNetStorefront Staff - Scott is offline Administrator
    Join Date
    Mar 2007
    Location
    Ashland, OR
    Posts
    2,390

    Default

    The ConfigFile method of managing the RAD editor has been deprecated by Telerik. The new way to handle this is by setting attributes on the control where it's added to the page. So for example, to enable scripts in topics, you would open up /admin/topic.aspx and look for:

    Code:
    <tcontrol:RadEditor runat="server" RadControlsDir="rad" id="radDescription">
         <ImageManager UploadPaths="~/Images" ViewPaths="~/Images" DeletePaths="~/Images" />
         <DocumentManager UploadPaths="~/Images" ViewPaths="~/Images" DeletePaths="~/Images" />
         <FlashManager UploadPaths="~/Images" ViewPaths="~/Images" DeletePaths="~/Images" />
         <MediaManager UploadPaths="~/Images" ViewPaths="~/Images" DeletePaths="~/Images" />
         <SilverlightManager UploadPaths="~/Images" ViewPaths="~/Images" DeletePaths="~/Images" />
         <TemplateManager UploadPaths="~/Images" ViewPaths="~/Images" DeletePaths="~/Images" />
    ...and add the 'AllowScripts' attribute, changing it to:

    Code:
    <tcontrol:RadEditor runat="server" AllowScripts="true" RadControlsDir="rad" id="radDescription">
         <ImageManager UploadPaths="~/Images" ViewPaths="~/Images" DeletePaths="~/Images" />
         <DocumentManager UploadPaths="~/Images" ViewPaths="~/Images" DeletePaths="~/Images" />
         <FlashManager UploadPaths="~/Images" ViewPaths="~/Images" DeletePaths="~/Images" />
         <MediaManager UploadPaths="~/Images" ViewPaths="~/Images" DeletePaths="~/Images" />
         <SilverlightManager UploadPaths="~/Images" ViewPaths="~/Images" DeletePaths="~/Images" />
         <TemplateManager UploadPaths="~/Images" ViewPaths="~/Images" DeletePaths="~/Images" />

  4. #4
    cfwebmasters is offline Junior Member
    Join Date
    Mar 2007
    Posts
    26

    Default No issues for us with jQuery

    We're running both jQuery 1.3.2 and jQuery 1.4.2 in our version 8 and version 9 sites without any conflicts that we're aware of. All of the shopping cart functions work as expected, as well as the product pages (with the exceptions of a bug in the VariantsInDropdown form validation code in version 9 that exists whether jQuery is loaded or not).

    In fact, we've used jQuery to heavily adapt the 1-page checkout "cart" tables to format alternate rows, remove inline styles, color the total and subtotal rows, position the tax and shipping items, etc to great effect without any errors.

    Don't know that that will help you much. Hunting down the cause of .js errors is definitely a pain. But, fwiw, we've had great success adding jQuery.

    Best of luck to you.

  5. #5
    aahmadi3 is offline Member
    Join Date
    Nov 2010
    Posts
    64

    Default

    Scott this worked perfectly for the topics but what file do I make this change on for Scripts to work in "Departments"?
    Thanks.

  6. #6
    ASPAlfred is offline Senior Member
    Join Date
    Nov 2007
    Posts
    2,244

    Default

    should be in Entityedit.aspx file.

  7. #7
    suedeapple is offline Member
    Join Date
    Aug 2010
    Posts
    30

    Default

    We've used jquery 1.4.2 heavily in www.chocolate.co.uk for a heap of formatting, and interaction tweaks.

    Not seen any problems at all.

  8. #8
    macecase is offline Member
    Join Date
    Feb 2011
    Posts
    44

    Default

    I have set AllowScripts="true" in the \wwwroot\admin\topics.aspx page but still am getting my script commented out.

    I have tried HTML HTML OK: as yes and no.... Still not running.

    I am on version 9.

    Any thoughts?

    Quote Originally Posted by AspDotNetStorefront Staff - Scott View Post
    The ConfigFile method of managing the RAD editor has been deprecated by Telerik. The new way to handle this is by setting attributes on the control where it's added to the page. So for example, to enable scripts in topics, you would open up /admin/topic.aspx and look for:

    Code:
    <tcontrol:RadEditor runat="server" RadControlsDir="rad" id="radDescription">
         <ImageManager UploadPaths="~/Images" ViewPaths="~/Images" DeletePaths="~/Images" />
         <DocumentManager UploadPaths="~/Images" ViewPaths="~/Images" DeletePaths="~/Images" />
         <FlashManager UploadPaths="~/Images" ViewPaths="~/Images" DeletePaths="~/Images" />
         <MediaManager UploadPaths="~/Images" ViewPaths="~/Images" DeletePaths="~/Images" />
         <SilverlightManager UploadPaths="~/Images" ViewPaths="~/Images" DeletePaths="~/Images" />
         <TemplateManager UploadPaths="~/Images" ViewPaths="~/Images" DeletePaths="~/Images" />
    ...and add the 'AllowScripts' attribute, changing it to:

    Code:
    <tcontrol:RadEditor runat="server" AllowScripts="true" RadControlsDir="rad" id="radDescription">
         <ImageManager UploadPaths="~/Images" ViewPaths="~/Images" DeletePaths="~/Images" />
         <DocumentManager UploadPaths="~/Images" ViewPaths="~/Images" DeletePaths="~/Images" />
         <FlashManager UploadPaths="~/Images" ViewPaths="~/Images" DeletePaths="~/Images" />
         <MediaManager UploadPaths="~/Images" ViewPaths="~/Images" DeletePaths="~/Images" />
         <SilverlightManager UploadPaths="~/Images" ViewPaths="~/Images" DeletePaths="~/Images" />
         <TemplateManager UploadPaths="~/Images" ViewPaths="~/Images" DeletePaths="~/Images" />