Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #36082 > unrolled thread
| Started by | Sabapathi Ramachandiran <sabapathiramachandiran@gmail.com> |
|---|---|
| First post | 2019-03-05 01:47 -0800 |
| Last post | 2019-03-05 21:49 +0100 |
| Articles | 6 — 4 participants |
Back to article view | Back to comp.lang.javascript
comp.lang.javascript Sabapathi Ramachandiran <sabapathiramachandiran@gmail.com> - 2019-03-05 01:47 -0800
Re: comp.lang.javascript "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2019-03-05 12:04 +0100
Re: comp.lang.javascript John G Harris <niam@jghnorth.org.uk.invalid> - 2019-03-05 18:23 +0000
Re: comp.lang.javascript "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2019-03-05 19:43 +0100
Re: comp.lang.javascript dr.j.r.stockton@gmail.com - 2019-03-05 12:26 -0800
Re: comp.lang.javascript "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2019-03-05 21:49 +0100
| From | Sabapathi Ramachandiran <sabapathiramachandiran@gmail.com> |
|---|---|
| Date | 2019-03-05 01:47 -0800 |
| Subject | comp.lang.javascript |
| Message-ID | <a55b1b44-f092-4d31-831d-5ebdbd3a75ea@googlegroups.com> |
JavaScript is a programming language commonly used in web development. It was originally developed by Netscape as a means to add dynamic and interactive elements to websites. ... Like server-side scripting languages, such as PHP and ASP, JavaScript code can be inserted anywhere within the HTML of a webpage. https://www.gangboard.com/app-programming-scripting-training/javascript-training
[toc] | [next] | [standalone]
| From | "Evertjan." <exxjxw.hannivoort@inter.nl.net> |
|---|---|
| Date | 2019-03-05 12:04 +0100 |
| Message-ID | <XnsAA097AC5E575Eeejj99@194.109.6.166> |
| In reply to | #36082 |
Sabapathi Ramachandiran <sabapathiramachandiran@gmail.com> wrote on 05 Mar 2019 in comp.lang.javascript: > JavaScript is a programming language commonly used in web development. > It was originally developed by Netscape as a means to add dynamic and > interactive elements to websites. ... Like server-side scripting > languages, such as PHP and ASP, JavaScript code can be inserted anywhere > within the HTML of a webpage. Wrong! ASP is not a language, only a serverside platform and interpreting engine. So ASP cannot be inserted, the Classic-ASP engine can interpret inserted, among others, Jscript [= fairly old javascript] and VBScript. Wrong! A webpage is not something where one can insert something in, however, if you mean a web-page stream, yes, HTML, CSS, and Javascript can be part of that text-stream. However serverside languages cannot usefully be inserted in such streams, they can only be inserted in the serverside source text-file, and are filtered out and executed while the text-stream is generated. -- Evertjan. The Netherlands. (Please change the x'es to dots in my emailaddress)
[toc] | [prev] | [next] | [standalone]
| From | John G Harris <niam@jghnorth.org.uk.invalid> |
|---|---|
| Date | 2019-03-05 18:23 +0000 |
| Message-ID | <8jft7e9uc775c2bq720vug3hhnghr13dcb@4ax.com> |
| In reply to | #36083 |
On Tue, 05 Mar 2019 12:04:08 +0100, "Evertjan." <exxjxw.hannivoort@inter.nl.net> wrote: <snip> >A webpage is not something where one can insert something in, >however, if you mean a web-page stream, yes, HTML, CSS, and Javascript can >be part of that text-stream. <snip> Actually, it's a document that is sent, and you can insert extra text in it (if you're brave enough). John
[toc] | [prev] | [next] | [standalone]
| From | "Evertjan." <exxjxw.hannivoort@inter.nl.net> |
|---|---|
| Date | 2019-03-05 19:43 +0100 |
| Message-ID | <XnsAA09C8B47456Eeejj99@194.109.6.166> |
| In reply to | #36084 |
John G Harris <niam@jghnorth.org.uk.invalid> wrote on 05 Mar 2019 in comp.lang.javascript: > On Tue, 05 Mar 2019 12:04:08 +0100, "Evertjan." > <exxjxw.hannivoort@inter.nl.net> wrote: > > <snip> >>A webpage is not something where one can insert something in, >>however, if you mean a web-page stream, yes, HTML, CSS, and Javascript can >>be part of that text-stream. > <snip> > > Actually, it's a document that is sent, and you can insert extra text > in it (if you're brave enough). If there is no text [a string, meaning readable characters, including end of line etc.] in it, it cannot induce the browser to make a web-page, I presume. However it was more about the misconception of what ASP was. -- Evertjan. The Netherlands. (Please change the x'es to dots in my emailaddress)
[toc] | [prev] | [next] | [standalone]
| From | dr.j.r.stockton@gmail.com |
|---|---|
| Date | 2019-03-05 12:26 -0800 |
| Message-ID | <400698fc-c99d-460f-8947-3db8ab6c860b@googlegroups.com> |
| In reply to | #36083 |
On Tuesday, 5 March 2019 11:04:45 UTC, Evertjan. wrote:
> A webpage is not something where one can insert something in ...
Not necessarily not. For example, if the Web page contains a
Button which causes 'eval' of the contents of an editable
Textarea, then the user can, as far as I can see (and tested
locally) insert into the displayed page anything which can
be expressed in JavaScript in a Textarea.
I just performed thusly, as a test,
Divn.innerHTML = "RHUBARB<br>...<br>" + document.body.innerHTML
inserting a copy of the body in the body (without its CSS and with
non-working script). Windows 10, current Firefox.
And, in my translation of the first two chapters of Lagrange's
famous paper, which worked on the Web, I execute something like
BODY = BODY.replace(RegExp, String) ; //.
So it appears that a suitably-coded Web page can be altered to
whatever a browser can show.
--
(c) John Stockton, near London, UK. Using Google Groups. |
Mail: J.R.""""""""@physics.org - or as Reply-To, if any. |
[toc] | [prev] | [next] | [standalone]
| From | "Evertjan." <exxjxw.hannivoort@inter.nl.net> |
|---|---|
| Date | 2019-03-05 21:49 +0100 |
| Message-ID | <XnsAA09DDFE31CBCeejj99@194.109.6.166> |
| In reply to | #36086 |
dr.j.r.stockton@gmail.com wrote on 05 Mar 2019 in comp.lang.javascript: > On Tuesday, 5 March 2019 11:04:45 UTC, Evertjan. wrote: > >> A webpage is not something where one can insert something in ... > > Not necessarily not. For example, if the Web page contains a > Button which causes 'eval' of the contents of an editable > Textarea, then the user can, as far as I can see (and tested > locally) insert into the displayed page anything which can > be expressed in JavaScript in a Textarea. > > I just performed thusly, as a test, > Divn.innerHTML = "RHUBARB<br>...<br>" + document.body.innerHTML > inserting a copy of the body in the body (without its CSS and with > non-working script). Windows 10, current Firefox. > > And, in my translation of the first two chapters of Lagrange's > famous paper, which worked on the Web, I execute something like > BODY = BODY.replace(RegExp, String) ; //. > > So it appears that a suitably-coded Web page can be altered to > whatever a browser can show. Certainly John, yes, that "something" was sloppy of me, I ment "some serverside code", as the web-page only exists in the browser. -- Evertjan. The Netherlands. (Please change the x'es to dots in my emailaddress)
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.javascript
csiph-web