Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #38275
| Newsgroups | comp.lang.javascript |
|---|---|
| Date | 2020-03-20 00:03 -0700 |
| References | <56c23884-8adb-4a05-8646-b70e6649ae12@googlegroups.com> <fd0fcdad-b1e5-4d61-a281-9485b45c83a5@googlegroups.com> <0dc69257-0ac7-47b2-ab50-d739fd347892@googlegroups.com> |
| Message-ID | <2ffdd28e-ff7f-4ead-8fc8-11b225e2e35e@googlegroups.com> (permalink) |
| Subject | Re: How can i have semicolon ";" as part of string? |
| From | Jonas Thörnvall <jonas.thornvall@gmail.com> |
Den fredag 20 mars 2020 kl. 08:01:49 UTC+1 skrev Jonas Thörnvall:
> Den fredag 20 mars 2020 kl. 07:54:08 UTC+1 skrev Jonas Thörnvall:
> > Den fredag 20 mars 2020 kl. 06:23:03 UTC+1 skrev Jonas Thörnvall:
> > > This string is correct built
> > >
> > > mySliders[mySliders.length]="<div id='sliderContainer"+mySliders.length+"'>\n<input type='range' min='1' max='100' value='10' orient='vertical'></div>";
> > >
> > >
> > > This one gives error i suspect is the semicolon, how can i have semicolon in string
> > >
> > > mySliders[mySliders.length]="<div id='sliderContainer"+mySliders.length+"'>\n<input type='range' min='1' max='100' value='10' orient='vertical'></div> <script> dragElement(document.getElementById('sliderContainer')); </script>";
> >
> > I no longer think it is the semicolon and i do not think it is the brackets. rather i have no idea what it is. So could someone tell me the 3 sek answer to this question, so i can go on building my code generator. "OK, pretty please"
> >
> > test="<script> dragElement(document.getElementById('sliderContainer')); </script>";
> >
> > WTF is wrong with the string.
>
> Well certainly something is wrong.
>
> <!DOCTYPE html>
> <html>
> <body>
>
> <h2>JavaScript Strings</h2>
>
> <p id="demo"></p>
>
> <script>
> var x = ="<script> dragElement(document.getElementById('sliderContainer')); </script>";
> document.getElementById("demo").innerHTML = x;
> </script>
>
> </body>
> </html>
>
> Have i found a bug in Javascript?
Run here
https://www.w3schools.com/js/tryit.asp?filename=tryjs_string
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How can i have semicolon ";" as part of string? Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-03-19 22:22 -0700
Re: How can i have semicolon ";" as part of string? Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-03-19 23:54 -0700
Re: How can i have semicolon ";" as part of string? Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-03-20 00:01 -0700
Re: How can i have semicolon ";" as part of string? Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-03-20 00:03 -0700
Re: How can i have semicolon ";" as part of string? Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-03-20 00:14 -0700
Re: How can i have semicolon ";" as part of string? Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-03-20 00:21 -0700
Re: How can i have semicolon ";" as part of string? Julio Di Egidio <julio@diegidio.name> - 2020-03-20 01:20 -0700
Re: How can i have semicolon ";" as part of string? Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-03-20 02:45 -0700
Re: How can i have semicolon ";" as part of string? Julio Di Egidio <julio@diegidio.name> - 2020-03-20 10:04 -0700
Re: How can i have semicolon ";" as part of string? Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-03-20 20:47 -0700
Re: How can i have semicolon ";" as part of string? Julio Di Egidio <julio@diegidio.name> - 2020-03-20 12:07 -0700
Re: How can i have semicolon ";" as part of string? Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-03-20 02:50 -0700
Re: How can i have semicolon ";" as part of string? JJ <jj4public@vfemail.net> - 2020-03-20 22:08 +0700
Re: How can i have semicolon ";" as part of string? "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2020-03-20 08:53 -0700
Re: How can i have semicolon ";" as part of string? "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2020-03-20 08:50 -0700
Re: How can i have semicolon ";" as part of string? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2020-03-31 03:16 +0200
Re: How can i have semicolon ";" as part of string? Jon Ribbens <jon+usenet@unequivocal.eu> - 2020-03-31 10:29 +0000
Re: How can i have semicolon ";" as part of string? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2020-03-31 17:07 +0200
csiph-web