Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #38144 > unrolled thread
| Started by | Jonas Thörnvall <jonas.thornvall@gmail.com> |
|---|---|
| First post | 2020-01-26 22:46 -0800 |
| Last post | 2020-01-29 09:27 +0100 |
| Articles | 18 — 4 participants |
Back to article view | Back to comp.lang.javascript
<iframe> use identifier Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-01-26 22:46 -0800
Re: <iframe> use identifier "R.Wieser" <address@not.available> - 2020-01-27 08:23 +0100
Re: <iframe> use identifier Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-01-26 23:48 -0800
Re: <iframe> use identifier Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-01-26 23:59 -0800
Re: <iframe> use identifier Arno Welzel <usenet@arnowelzel.de> - 2020-01-27 09:47 +0100
Re: <iframe> use identifier Arno Welzel <usenet@arnowelzel.de> - 2020-01-27 09:46 +0100
Re: <iframe> use identifier "R.Wieser" <address@not.available> - 2020-01-27 10:49 +0100
Re: <iframe> use identifier Arno Welzel <usenet@arnowelzel.de> - 2020-01-27 09:42 +0100
Re: <iframe> use identifier "R.Wieser" <address@not.available> - 2020-01-27 10:41 +0100
Re: <iframe> use identifier Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-01-27 03:45 -0800
Re: <iframe> use identifier "R.Wieser" <address@not.available> - 2020-01-27 13:59 +0100
Re: <iframe> use identifier Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-01-27 05:36 -0800
Re: <iframe> use identifier Arno Welzel <usenet@arnowelzel.de> - 2020-01-27 17:27 +0100
Re: <iframe> use identifier Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-01-27 15:34 -0800
Re: <iframe> use identifier Arno Welzel <usenet@arnowelzel.de> - 2020-01-28 15:16 +0100
Re: <iframe> use identifier John G Harris <niam@jghnorth.org.uk.invalid> - 2020-01-28 19:08 +0000
Re: <iframe> use identifier Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-01-28 18:01 -0800
Re: <iframe> use identifier Arno Welzel <usenet@arnowelzel.de> - 2020-01-29 09:27 +0100
| From | Jonas Thörnvall <jonas.thornvall@gmail.com> |
|---|---|
| Date | 2020-01-26 22:46 -0800 |
| Subject | <iframe> use identifier |
| Message-ID | <884e1d41-e5f9-42b7-ab22-02cb309da48d@googlegroups.com> |
I have some iframes in my main document.
And i try to make code to hide and show them.
Specifically i now work with iframe and stylecode where i set the iframe default to visible at load in main document.
However i do not understand why i refer to the style "object" identifier using iframe and not virtpiano? Because the below style segment affect all iframes in document? I tried use virtpiano in stile but that doesn't do anything.
<iframe src="/virtpiano.html" id="virtpiano" name="virtpiano" width=1890 height=200 ></iframe>
<style>
iframe {
visibility: visible;
position: absolute;
left: 0; top: 500;
height:130; width:1890;
border: none;
}
</style>
So what identifies the iframe "object?"
[toc] | [next] | [standalone]
| From | "R.Wieser" <address@not.available> |
|---|---|
| Date | 2020-01-27 08:23 +0100 |
| Message-ID | <r0m36r$j85$1@gioia.aioe.org> |
| In reply to | #38144 |
Jonas, > However i do not understand why i refer to the style "object" identifier > using iframe and not virtpiano? https://www.w3schools.com/cssref/sel_id.asp
[toc] | [prev] | [next] | [standalone]
| From | Jonas Thörnvall <jonas.thornvall@gmail.com> |
|---|---|
| Date | 2020-01-26 23:48 -0800 |
| Message-ID | <e94ce2c7-912b-4787-aea0-4f8007050b12@googlegroups.com> |
| In reply to | #38145 |
Den måndag 27 januari 2020 kl. 08:24:17 UTC+1 skrev R.Wieser: > Jonas, > > > However i do not understand why i refer to the style "object" identifier > > using iframe and not virtpiano? > > https://www.w3schools.com/cssref/sel_id.asp Thanks short and concise answer! But it's raise questions. I guess that # denotes identifier? And . denotes class? Can i ask, why the "fuck" not use Id and Class, is this Perl all over?
[toc] | [prev] | [next] | [standalone]
| From | Jonas Thörnvall <jonas.thornvall@gmail.com> |
|---|---|
| Date | 2020-01-26 23:59 -0800 |
| Message-ID | <c1427fb3-b69e-4678-8ec4-38aa8ee630b1@googlegroups.com> |
| In reply to | #38146 |
Den måndag 27 januari 2020 kl. 08:48:55 UTC+1 skrev Jonas Thörnvall: > Den måndag 27 januari 2020 kl. 08:24:17 UTC+1 skrev R.Wieser: > > Jonas, > > > > > However i do not understand why i refer to the style "object" identifier > > > using iframe and not virtpiano? > > > > https://www.w3schools.com/cssref/sel_id.asp > > Thanks short and concise answer! > But it's raise questions. > > I guess that # denotes identifier? > And . denotes class? > > Can i ask, why the "fuck" not use Id and Class, is this Perl all over? And if you think it mix up with id and class in the html document. Why not use id. class. These fucking symbolic things that should be interpretated, which fucking monkey decide on those. This is a perfect example of some anal prick, starting to "blackbox" the syntax so you need a fucking lookup table to do anything. Soon you end up with things like brackets and . having meaning dependent upon where they positioned. A clear example of that is the nonsense filereader of javascript that somone came up with. It is a fucking mystery to read out. No its not a mystery it is nonesense.
[toc] | [prev] | [next] | [standalone]
| From | Arno Welzel <usenet@arnowelzel.de> |
|---|---|
| Date | 2020-01-27 09:47 +0100 |
| Message-ID | <h97me0F83rlU2@mid.individual.net> |
| In reply to | #38147 |
Jonas Thörnvall: [...] > These fucking symbolic things that should be interpretated, which > fucking monkey decide on those. This is a perfect example of some > anal prick, starting to "blackbox" the syntax so you need a fucking > lookup table to do anything. No, it's just an example that you don't understand it. Everybody with a certain experience in this area has no problems understanding selectors in HTML. -- Arno Welzel https://arnowelzel.de
[toc] | [prev] | [next] | [standalone]
| From | Arno Welzel <usenet@arnowelzel.de> |
|---|---|
| Date | 2020-01-27 09:46 +0100 |
| Message-ID | <h97mbkF83rlU1@mid.individual.net> |
| In reply to | #38146 |
Jonas Thörnvall: > Den måndag 27 januari 2020 kl. 08:24:17 UTC+1 skrev R.Wieser: >> Jonas, >> >>> However i do not understand why i refer to the style "object" identifier >>> using iframe and not virtpiano? >> >> https://www.w3schools.com/cssref/sel_id.asp > > Thanks short and concise answer! > But it's raise questions. > > I guess that # denotes identifier? > And . denotes class? Correct. > Can i ask, why the "fuck" not use Id and Class, is this Perl all over? It's depends what you need it for. An ID is used to identify a *single* element in the document and can also be used as anchor (with "#id" at the end of the URL - when opening such an URL the browser automatically scrolls the view so the element is inside the current viewport) while classes are a visual property. A single element can have multiple classes but only one ID which has to be unique for the document. -- Arno Welzel https://arnowelzel.de
[toc] | [prev] | [next] | [standalone]
| From | "R.Wieser" <address@not.available> |
|---|---|
| Date | 2020-01-27 10:49 +0100 |
| Message-ID | <r0mbnu$1sas$1@gioia.aioe.org> |
| In reply to | #38146 |
Jonas, > Can i ask, why the "fuck" not use Id and Class, is this Perl all over? Why the "fuck" are you using English/American here, and not your own countries language ? Use that reply to answer your own question. Regards, Rudy Wieser
[toc] | [prev] | [next] | [standalone]
| From | Arno Welzel <usenet@arnowelzel.de> |
|---|---|
| Date | 2020-01-27 09:42 +0100 |
| Message-ID | <h97m3fF7vr9U2@mid.individual.net> |
| In reply to | #38144 |
Jonas Thörnvall:
> I have some iframes in my main document.
> And i try to make code to hide and show them.
>
> Specifically i now work with iframe and stylecode where i set the iframe default to visible at load in main document.
>
> However i do not understand why i refer to the style "object" identifier using iframe and not virtpiano? Because the below style segment affect all iframes in document? I tried use virtpiano in stile but that doesn't do anything.
>
> <iframe src="/virtpiano.html" id="virtpiano" name="virtpiano" width=1890 height=200 ></iframe>
>
>
> <style>
> iframe {
> visibility: visible;
> position: absolute;
> left: 0; top: 500;
> height:130; width:1890;
> border: none;
> }
> </style>
>
> So what identifies the iframe "object?"
#virtpiano {
visibility: visible;
position: absolute;
left: 0; top: 500;
height:130; width:1890;
border: none;
}
--
Arno Welzel
https://arnowelzel.de
[toc] | [prev] | [next] | [standalone]
| From | "R.Wieser" <address@not.available> |
|---|---|
| Date | 2020-01-27 10:41 +0100 |
| Message-ID | <r0mb8k$1pvh$1@gioia.aioe.org> |
| In reply to | #38144 |
Jonas, > However i do not understand why i refer to the style "object" identifier > using iframe and not virtpiano? Keywords thrown into Google: CSS style ID First result: https://www.w3schools.com/cssref/sel_id.asp As long as you refuse to do some searching for yourself you will stay dumb, and /always/ need others to do even the simpelest things. :-( ... and they, like I, might start to ignore you. Than where will that leave you ? Heck, you could even have opened a webpage or two and looked in to them to see how they did it! But no. :-( Regards, Rudy Wieser
[toc] | [prev] | [next] | [standalone]
| From | Jonas Thörnvall <jonas.thornvall@gmail.com> |
|---|---|
| Date | 2020-01-27 03:45 -0800 |
| Message-ID | <29257c48-e137-4ce9-8eb7-d83faffa1792@googlegroups.com> |
| In reply to | #38151 |
Den måndag 27 januari 2020 kl. 10:41:46 UTC+1 skrev R.Wieser: > Jonas, > > > However i do not understand why i refer to the style "object" identifier > > using iframe and not virtpiano? > > Keywords thrown into Google: CSS style ID > > First result: https://www.w3schools.com/cssref/sel_id.asp > > As long as you refuse to do some searching for yourself you will stay dumb, > and /always/ need others to do even the simpelest things. :-( > > ... and they, like I, might start to ignore you. Than where will that leave > you ? > > Heck, you could even have opened a webpage or two and looked in to them to > see how they did it! But no. :-( > > Regards, > Rudy Wieser Well i am not that found of hieroglyphs in code, i prefer semantics weither it is HTML, CSS or Javascript does not matter. $#@!!!&&¤¤ It is a new and fresh programming paradigm. Yeah go get the lookup table for that.
[toc] | [prev] | [next] | [standalone]
| From | "R.Wieser" <address@not.available> |
|---|---|
| Date | 2020-01-27 13:59 +0100 |
| Message-ID | <r0mmst$1mk2$1@gioia.aioe.org> |
| In reply to | #38153 |
Jonas, > Well i am not that found of hieroglyphs in code, i prefer > semantics weither it is HTML, CSS or Javascript does > not matter. And that preference caused you to be unable to search for a solution yourself ? Really ? Regards, Rudy Wieser
[toc] | [prev] | [next] | [standalone]
| From | Jonas Thörnvall <jonas.thornvall@gmail.com> |
|---|---|
| Date | 2020-01-27 05:36 -0800 |
| Message-ID | <c138b04e-3d9b-45ed-a96c-896bd670806d@googlegroups.com> |
| In reply to | #38154 |
Den måndag 27 januari 2020 kl. 14:00:19 UTC+1 skrev R.Wieser: > Jonas, > > > Well i am not that found of hieroglyphs in code, i prefer > > semantics weither it is HTML, CSS or Javascript does > > not matter. > > And that preference caused you to be unable to search for a solution > yourself ? Really ? > > Regards, > Rudy Wieser No but i can't see why someone prefer a "blackbox" lookup hieroglyph, before four chararcter of semantic, it is a mystery.
[toc] | [prev] | [next] | [standalone]
| From | Arno Welzel <usenet@arnowelzel.de> |
|---|---|
| Date | 2020-01-27 17:27 +0100 |
| Message-ID | <h98hbiFdm3fU1@mid.individual.net> |
| In reply to | #38155 |
On 27.01.20 14:36, Jonas Thörnvall wrote: > Den måndag 27 januari 2020 kl. 14:00:19 UTC+1 skrev R.Wieser: >> Jonas, >> >>> Well i am not that found of hieroglyphs in code, i prefer >>> semantics weither it is HTML, CSS or Javascript does >>> not matter. >> >> And that preference caused you to be unable to search for a solution >> yourself ? Really ? >> >> Regards, >> Rudy Wieser > > No but i can't see why someone prefer a "blackbox" lookup hieroglyph, before four chararcter of semantic, it is a mystery. Well - CSS is not "code". It's just a stylesheet with *rules* how to *display* things and it has its own syntax for selectors which is not really that hard. Keep in mind, that CSS files also have to be transferred and parsed quickly - using an XML like syntax for this would make things *much* more cumbersome to deal with. If you want to select elements by ID or class in JavaScript you can do this by using getElementbyId(): <https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementById> <https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementsByClassName> I don't see any "blackbox" or "hieroglyph" here. -- Arno Welzel https://arnowelzel.de
[toc] | [prev] | [next] | [standalone]
| From | Jonas Thörnvall <jonas.thornvall@gmail.com> |
|---|---|
| Date | 2020-01-27 15:34 -0800 |
| Message-ID | <6a72bad5-2af7-46a6-9656-62bbd80fe3a6@googlegroups.com> |
| In reply to | #38156 |
Den måndag 27 januari 2020 kl. 17:27:36 UTC+1 skrev Arno Welzel: > On 27.01.20 14:36, Jonas Thörnvall wrote: > > > Den måndag 27 januari 2020 kl. 14:00:19 UTC+1 skrev R.Wieser: > >> Jonas, > >> > >>> Well i am not that found of hieroglyphs in code, i prefer > >>> semantics weither it is HTML, CSS or Javascript does > >>> not matter. > >> > >> And that preference caused you to be unable to search for a solution > >> yourself ? Really ? > >> > >> Regards, > >> Rudy Wieser > > > > No but i can't see why someone prefer a "blackbox" lookup hieroglyph, before four chararcter of semantic, it is a mystery. > > Well - CSS is not "code". It's just a stylesheet with *rules* how to > *display* things and it has its own syntax for selectors which is not > really that hard. Keep in mind, that CSS files also have to be > transferred and parsed quickly - using an XML like syntax for this would > make things *much* more cumbersome to deal with. > > If you want to select elements by ID or class in JavaScript you can do > this by using getElementbyId(): > > <https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementById> > > <https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementsByClassName> > > I don't see any "blackbox" or "hieroglyph" here. > > > -- > Arno Welzel > https://arnowelzel.de Well Arno, if you use # to denote ID when you can write ID and . to denote Class when you can write class. You have assigned meaning to your hieroglyphs, but after a few thousand years of trial an error with the written language, we developed semantics "you know sounding characters". That way you did not have to learn "the hidden blackbox" meaning of a symbol. No there was sounds corresponding to characters, but i see there is some apes wanting us to migrate back in time, possibly they would prefer blip blop encoding with zeros and ones and playing with registers. But they decided that halfway going perl style was enough.
[toc] | [prev] | [next] | [standalone]
| From | Arno Welzel <usenet@arnowelzel.de> |
|---|---|
| Date | 2020-01-28 15:16 +0100 |
| Message-ID | <h9au2tFsv8qU1@mid.individual.net> |
| In reply to | #38157 |
On 28.01.20 00:34, Jonas Thörnvall wrote: [...] > Well Arno, if you use # to denote ID when you can write ID and . to > denote Class when you can write class. So what? Somehow you need to distinguish, if the selector of a CSS rule means the HTML element: <iframe> or an element with the ID "iframe": <p id="iframe"> or the class "iframe": <p class="iframe bordered"> > You have assigned meaning to your hieroglyphs, but after a few > thousand years of trial an error with the written language, we > developed semantics "you know sounding characters". That way you did CSS is not a language for communication. It's a format to define layout rules. And the goals for CSS selectors was not to have a language which is self explanatory for people not willing to learn how it works. And what is the "sound" of characters like ";" and the end of each statement in JavaScript and what is the "sound" of "<<" compared to "<"? Or "==" compared to "="? In every language you have to learn the syntax and syntax also includes the meaning of certain symbols. > not have to learn "the hidden blackbox" meaning of a symbol. No there You do. English has many examples of word written totally different than you have to pronounce them. You still need to know to rules how to pronounce words written in a sepecific language. So when you are able to read something this does not mean that you know how it sounds when you don't know anything about the language. > was sounds corresponding to characters, but i see there is some apes > wanting us to migrate back in time, possibly they would prefer blip > blop encoding with zeros and ones and playing with registers. But > they decided that halfway going perl style was enough. Well - go ahead and create a "natural language to CSS compiler" if you don't like the official syntax. Maybe you use COBOL as a starting point and extend it so it can be used to describe CSS rules ;-) *scnr* -- Arno Welzel https://arnowelzel.de
[toc] | [prev] | [next] | [standalone]
| From | John G Harris <niam@jghnorth.org.uk.invalid> |
|---|---|
| Date | 2020-01-28 19:08 +0000 |
| Message-ID | <gh113fhp2ceui2ajaeuvvcnjf5taatlel6@4ax.com> |
| In reply to | #38157 |
On Mon, 27 Jan 2020 15:34:46 -0800 (PST), Jonas Thörnvall <jonas.thornvall@gmail.com> wrote: <snip> >You have assigned meaning to your hieroglyphs, but after a few thousand years of trial an error with the written language, we developed semantics "you know sounding characters". That way you did not have to learn "the hidden blackbox" meaning of a symbol. No there was sounds corresponding to characters, So you object to English people shortening The dog belonging to Jim. into Jim's dog. John
[toc] | [prev] | [next] | [standalone]
| From | Jonas Thörnvall <jonas.thornvall@gmail.com> |
|---|---|
| Date | 2020-01-28 18:01 -0800 |
| Message-ID | <d402a46d-62b8-4895-a12d-0c25b36e5419@googlegroups.com> |
| In reply to | #38173 |
Den tisdag 28 januari 2020 kl. 20:08:49 UTC+1 skrev John G Harris: > On Mon, 27 Jan 2020 15:34:46 -0800 (PST), Jonas Thörnvall > <jonas.thornvall@gmail.com> wrote: > > <snip> > >You have assigned meaning to your hieroglyphs, but after a few thousand years of trial an error with the written language, we developed semantics "you know sounding characters". That way you did not have to learn "the hidden blackbox" meaning of a symbol. No there was sounds corresponding to characters, > > So you object to English people shortening > The dog belonging to Jim. > into > Jim's dog. > > John No i do not think i do that i oppose context dependent symbols that aim to replace, reserved words. ID and CLASS would had done just fine.
[toc] | [prev] | [next] | [standalone]
| From | Arno Welzel <usenet@arnowelzel.de> |
|---|---|
| Date | 2020-01-29 09:27 +0100 |
| Message-ID | <h9ctvdFb28fU1@mid.individual.net> |
| In reply to | #38178 |
Jonas Thörnvall:
[...]
> No i do not think i do that i oppose context dependent symbols that
> aim to replace, reserved words. ID and CLASS would had done just
> fine.
Ok, what's your proposal to replace this example with "ID" and "CLASS":
iframe#virtpiano.bordered {
border: 1px #000;
}
--
Arno Welzel
https://arnowelzel.de
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.javascript
csiph-web