Javascript Error Uncaught SyntaxError: Unexpected Identifier

5 posts, 0 answers
  1. Cognitronic
    Cognitronic avatar
    11 posts
    Member since:
    Sep 2012

    Posted 21 Nov 2011 Link to this post

    I'm using the RadSocialShare control on a product details page in an eCommerce app and it was working fine for most products, but a few would not display the buttons.  In Chrome's javascript console I saw it was throwing the uncaught syntaxerror due to an apostrophe in the TitleToShare property's value.  As soon as I removed the apostrophe it started working....hope this helps someone else!
  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3602 posts

    Posted 22 Nov 2011 Link to this post

    Hi guys,

    We are aware of this issue and it has recently been addressed. The fix will be available in the next internal build (due in the beginning of the next week) and in all later official releases.


    Best wishes,
    Marin
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Justin Furniss
    Justin Furniss avatar
    5 posts
    Member since:
    May 2008

    Posted 23 Nov 2011 Link to this post

    I'd like to know when the new build is available also.  Any work-around for the time being?
  5. Justin Furniss
    Justin Furniss avatar
    5 posts
    Member since:
    May 2008

    Posted 23 Nov 2011 Link to this post

    Nevermind.  Double escaping seems to work for me.

    "Checkout someone\\\\'s new blog post!";
  6. bojanv
    bojanv avatar
    2 posts
    Member since:
    Dec 2006

    Posted 29 Nov 2011 Link to this post

    Cognitronic, thank you for the tip....didn't see that coming...everything works on local dev machine and in staging, since nobody entered ' or ".

    Your solution workedt. It also helps, if you remove any breaks, if user enters text in multiline textbox.

    I would also add myself to the list for the fix. 
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017