Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Andy Butland 422 posts 2334 karma points MVP 4x hq c-trib
    Mar 12, 2014 @ 18:05
    Andy Butland
    1

    Intermittent JavaScript editor

    Not sure if you've seen this one before, but had a weird issue today working on a project with a colleague.  We had the same code and his set up was fine, but for me I was seeing errors in the JavaScript console for DAMP.

    In Chrome:  Unexpected token ILLEGAL

    In Firefox: Unterminated string literal.

    The issue was in DAMPScript.js and investigation took me here.

    From that I changed the source file, line 23 from this:

    + "</script></head><body></body></html>";

    To this:

    + "<\/script><\/head><body><\/body></html>";

    Seems to have resolved the issue so posting here in case useful to update the source.

    Andy

     

  • Jeroen Breuer 4909 posts 12266 karma points MVP 5x admin c-trib
    Mar 12, 2014 @ 18:12
    Jeroen Breuer
    100

    Hello,

    What version of DAMP are you using? It should be fixed in DAMP 2.7 and is related to using the Visual Studio Browser Link. More info here: http://our.umbraco.org/projects/backoffice-extensions/digibiz-advanced-media-picker/digibiz-advanced-media-picker/46093-Visual-Studio-Browser-Link-breaks-DAMP

    Jeroen

  • Andy Butland 422 posts 2334 karma points MVP 4x hq c-trib
    Mar 12, 2014 @ 18:20
    Andy Butland
    0

    Thanks Jeroen - always one step ahead!

    That explains it (my colleague has VS.Net 2012 - so no browserlink - and I've got 2013).  And we're on 2.6.

    Andy

Please Sign in or register to post replies

Write your reply to:

Draft