Home > Unterminated String > Unterminated String Literal Error In Javascript

Unterminated String Literal Error In Javascript


Browse other questions tagged javascript jquery or ask your own question. It will work if you fix it, say, like this: $(htmlContent).find('a.someClass').append( ''); Can you see the difference? :-) —SA Permalink Posted 26-Feb-14 20:04pm Sergey Level? If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. have a peek at this web-site

What is it? Not the answer you're looking for? Why can't the second fundamental theorem of calculus be proved in just two lines? How to apply for UK visit visa after four refusals?

Unterminated String Literal Error In Javascript

AWS EC2 SSH from my IP address which has changed Former boss asking me to do presentations How do really talented people in academia think about people who are less capable more hot questions question feed lang-php about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation already i have 832 lines in my code –Ashu Apr 29 '14 at 6:57 But it will be much better for maintenance. In other words, you could turn the incorrect: $html='

  • ' + $question_number + 'Question Title
    ... '; into: $html='
  • ' + $question_number + 'Question Title
    ... ';

    1. Best way to repair rotted fuel line?
    2. Any suggestion.
    3. Re: Re: unterminated string literal when using .html 4 years ago I just edit the DB text using the same textarea and I have a button to save it underneath.
    4. I check console and the error is in $('#mydiv').append('\ in this line.

    This is causing the browser to think that you're terminating your script tag early. Does compactness depend on the metric? You have put a line break on line 4 after the equal to = sign. Syntaxerror Unterminated String Literal Php Thanks. $('#mydiv').append('\

    \ \ \ \ \ \

    T E S T




    Solutions? View More Recalll - Medium for programmers. share|improve this answer answered Dec 11 '10 at 16:49 outis 49.4k889142 single quote or double code its same in javascript rigt –kobe Dec 11 '10 at 16:56 Terms of Service Layout: fixed | fluid CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100 Loading...

    The trigger is shown in my code above ( $('.submit').) When I open the page the text should load up automatically. Syntaxerror Unterminated String Literal Json Insults are not welcome. Is there a word for "timeless" that doesn't imply the passage of time? Is there any way to do something like thisvar test = "12345"; Leave a comment on dsvick's reply dsvick Re: unterminated string literal when using .html 4 years ago The line

    Unterminated String Literal Jquery Html

    Do pulled hair from the root grow back? but when i try to show this string in edit page it causes this jquery error because of the enters: SyntaxError: unterminated string literal this is my code: + '');it gets me theunterminated string literal error. Attach files Desktop Zoho Docs Google Docs Each Attachment size should not exceed 1.0 MB. guest Response titleThis is preview!Attachments Publish Back to edit Cancel ()Sign In New to this Portal? Syntaxerror Unterminated String Literal In Jquery

    Why is the bridge on smaller spacecraft at the front but not in bigger vessels? If your file is really getting to big then you could split it up in seperate files. –GuyT Apr 29 '14 at 6:58 1 And as you see, when you And if other programmers have to work with this code it will take them ages to understand. Source Jul 13 '13 at 19:33 1 @user2570025 cant be the same error, on what line is it now? –Zevi Sternlicht Jul 13 '13 at 19:34 Same error.Actually,the "');"

    What object can prove the equations? Unterminated String Literal Javascript Error Solution Join them; it only takes a minute: Sign up jquery:SyntaxError: unterminated string literal up vote -1 down vote favorite when ever i am giving a space between a word & i To save Literals value in string Advertise | Privacy | Mobile Web01 | 2.8.161027.1 | Last Updated 27 Feb 2014 Copyright © CodeProject, 1999-2016 All Rights Reserved.

    Are assignments in the condition part of conditionals a bad practice? "Squeezing out of a dead man" proverb What is way to eat rice with hands in front of westerners such

    Browse other questions tagged javascript jquery or ask your own question. Browse other questions tagged javascript php jquery or ask your own question. ah, good catch! Code echo ''.$cat->project_name.''; Read String share|improve this answer answered Apr 29 '14 at 6:56 Tushar Gupta 35.5k145373 1 +1 thanks for explanation –Ashu Apr 29 '14 at

    If you change your code to the following, it will work: As you can see, the above code breaks the Browse other questions tagged javascript jquery json or ask your own question. Best way to repair rotted fuel line? have a peek here javascript - SyntaxError: unterminated string literal in jquery - Stac...

    In which case it would look like this:.ajax({ url: 'module_2/3.php?PG=3&SUB_PG=3&ACTION=SAVE&FILE="+this.id', $('#'+name+'_INPUT').serialize(), success: function(data) { eval(data); }});That still wont fix your carriage return/new line problem though, that you'll Close Save i appreciate any help .. Does the reciprocal of a probability represent anything?

    Try it incognito browser, maybe the old one is cached! –Zevi Sternlicht Jul 13 '13 at 19:49 1 @user2570025: Oh, there is that error? Why is C# Dim a Chord in B Minor? Does compactness depend on the metric? Does Nietzsche's rejection of Socrates mean that he is a relativist about ethics?

    Before I leave my company, should I delete software I wrote during my free time?