Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9152483
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T12:03:32+00:00 2026-06-17T12:03:32+00:00

When I’m tries to open a saved blog posts with jQuery I got Uncaught

  • 0

When I’m tries to open a saved blog posts with jQuery I got Uncaught SyntaxError: Unexpected identifier on line 220. Line 220 is Hans kommande film som har premiär nu på.... Please see full code copied from Google Chromes console below.

    $('body').on('click', '#load-blogpost-ill-be-back', function() {

        var subject = "I\'ll be back!";
        var message = "[url=http://www.imdb.com/name/nm0000216/]Arnold Schwarzenegger[/url] är en sann legendar när det gäller kända repliker och karriär. I alla fall för min del. Hans \"I\'ll be back!\" i första [url=http://www.imdb.com/title/tt0088247/]Terminator[/url], är en klar klassiker som används ofta i all möjlig media, bilder som filmer. Jag tittade nyss på en [url=http://instagram.com/p/Ugz4LBDcfx/]Instagram-bild[/url] som han hade delat ut på Facebook, såg man att han börjar på att bli en gammal man. En gammal man i äkta papparoll-stuk, vilket gillas. I alla fall av mig :)

Hans kommande film som har premiär nu på fredag i [url=http://sv.wikipedia.org/wiki/USA]USA[/url], [url=http://www.imdb.com/title/tt1549920/]The Last Stand[/url], verkar för övrigt vara en väldigt lovande film med många kända skådespelare; [url=http://www.imdb.com/name/nm0424216/]Johnny Knoxville[/url], [url=http://www.imdb.com/name/nm0350079/]Luis Guzmán[/url], [url=http://www.imdb.com/name/nm0001780/]Peter Stormare[/url], [url=http://www.imdb.com/name/nm0001845/]Forest Whitaker[/url] och såklart våran kära Arnold som har huvudrollen i filmen. Titta på filmen förhandstitt nedan.
Uncaught SyntaxError: Unexpected identifier


[yt]https://www.youtube.com/embed/BS-FyAh9cv8[/yt]";

        $(this).replaceWith(subject);
        $('input[name="textfield-subject"]').val(subject);
        $('textarea[name="textarea-message"]').val(message).focus();

        // VISA
        $('.blogpost-preview-ruler').show();
        $('#blogpost-preview-head').show();

        // VISA & SKRIV UT
        $('#blogpost-preview-subject').show().html(subject);
        $('#blogpost-preview').show().html(bbcode_js(message));


        var selectedID = [];
        $(':checkbox[name="checkbox[]"]').each(function() {
                            if($(this).val() == '4') {
                    $(this).attr('checked', true);
                }
                    });

    });

What’s wrong with that line? Is it the / in the links?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T12:03:34+00:00Added an answer on June 17, 2026 at 12:03 pm

    The problem is that JavaScript doesn’t support multi-line strings like that. You either have to end each line with a \ (not recommended since a space afterwards also produces a syntax error) or to use concatenation.

    E.g., (notice they are two separate strings concatinated together and \n injected.)

    var message = "[url=http://www.imdb.com/name/nm0000216/]Arnold Schwarzenegger[/url] är en sann legendar när det gäller kända repliker och karriär. ... :)\n\n" +
              "Hans kommande film som har premiär nu på fredag i [url=http://sv.wikipedia.org/wiki/USA]USA[/url], [url=http://www.imdb.com/title/tt1549920/]The Last Stand[/url], ...";
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a jquery bug and I've been looking for hours now, I can't
I've got a string that has curly quotes in it. I'd like to replace
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
i got an object with contents of html markup in it, for example: string
I have a reasonable size flat file database of text documents mostly saved in
I have a bunch of posts stored in text files formatted in yaml/textile (from
Let's say I'm outputting a post title and in our database, it's Hello Y’all
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.