Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #29603 > unrolled thread
| Started by | bpascal123 <bpascal123@gmail.com> |
|---|---|
| First post | 2016-02-14 14:49 -0800 |
| Last post | 2016-02-17 04:46 -0800 |
| Articles | 6 on this page of 26 — 8 participants |
Back to article view | Back to comp.lang.javascript
Can someone tell if this is javascript or else (jquery)? bpascal123 <bpascal123@gmail.com> - 2016-02-14 14:49 -0800
Re: Can someone tell if this is javascript or else (jquery)? Stefan Weiss <krewecherl@gmail.com> - 2016-02-15 00:05 +0100
Re: Can someone tell if this is javascript or else (jquery)? bpascal123 <bpascal123@gmail.com> - 2016-02-14 15:26 -0800
Re: Can someone tell if this is javascript or else (jquery)? Stefan Weiss <krewecherl@gmail.com> - 2016-02-15 01:22 +0100
Re: Can someone tell if this is javascript or else (jquery)? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-02-15 20:00 +0100
Re: Can someone tell if this is javascript or else (jquery)? "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-02-15 05:41 -0800
Re: Can someone tell if this is javascript or else (jquery)? bpascal123 <bpascal123@gmail.com> - 2016-02-15 16:59 -0800
Re: Can someone tell if this is javascript or else (jquery)? Stefan Weiss <krewecherl@gmail.com> - 2016-02-16 04:20 +0100
Re: Can someone tell if this is javascript or else (jquery)? "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-02-15 22:18 -0800
Re: Can someone tell if this is javascript or else (jquery)? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-02-16 08:36 +0100
Re: Can someone tell if this is javascript or else (jquery)? Stefan Weiss <krewecherl@gmail.com> - 2016-02-16 11:45 +0100
Re: Can someone tell if this is javascript or else (jquery)? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-02-16 20:23 +0100
Re: Can someone tell if this is javascript or else (jquery)? John Harris <niam@jghnorth.org.uk.invalid> - 2016-02-16 20:24 +0000
Re: Can someone tell if this is javascript or else (jquery)? Andrew Poulos <ap_prog@hotmail.com> - 2016-02-17 07:31 +1100
Re: Can someone tell if this is javascript or else (jquery)? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-02-17 15:57 +0100
Re: Can someone tell if this is javascript or else (jquery)? Tim Streater <timstreater@greenbee.net> - 2016-02-17 15:09 +0000
Re: Can someone tell if this is javascript or else (jquery)? John Harris <niam@jghnorth.org.uk.invalid> - 2016-02-17 16:09 +0000
Re: Can someone tell if this is javascript or else (jquery)? John Harris <niam@jghnorth.org.uk.invalid> - 2016-02-17 15:45 +0000
Re: Can someone tell if this is javascript or else (jquery)? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-02-18 00:09 +0100
Re: Can someone tell if this is javascript or else (jquery)? Andrew Poulos <ap_prog@hotmail.com> - 2016-02-18 19:29 +1100
Re: Can someone tell if this is javascript or else (jquery)? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-02-18 23:36 +0100
Re: Can someone tell if this is javascript or else (jquery)? John Harris <niam@jghnorth.org.uk.invalid> - 2016-02-19 10:51 +0000
Re: Can someone tell if this is javascript or else (jquery)? Scott Sauyet <scott.sauyet@gmail.com> - 2016-02-19 09:01 -0800
Re: Can someone tell if this is javascript or else (jquery)? John Harris <niam@jghnorth.org.uk.invalid> - 2016-02-18 15:10 +0000
Re: Can someone tell if this is javascript or else (jquery)? Stefan Weiss <krewecherl@gmail.com> - 2016-02-16 23:56 +0100
Re: Can someone tell if this is javascript or else (jquery)? bpascal123 <bpascal123@gmail.com> - 2016-02-17 04:46 -0800
Page 2 of 2 — ← Prev page 1 [2]
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Date | 2016-02-18 23:36 +0100 |
| Message-ID | <41600258.7XRYZQJaTB@PointedEars.de> |
| In reply to | #29631 |
Andrew Poulos wrote: > On 18/02/2016 9:42 AM, Stefan Ram wrote: >> John Harris <niam@jghnorth.org.uk.invalid> writes: >>> On Wed, 17 Feb 2016 07:31:34 +1100, Andrew Poulos >>>> As this is programming, wouldn't it be more accurate to call it a set >>>> because a class is "... a template definition of the method s and >>>> variable s in a particular kind of object"? >>> In programming I prefer to think of a class as a collection of objects >>> that have something in common. The something in common is defined in >>> the class declaration or equivalent. Calling that a template is a bit >>> over the top. >> >> What Andrew quoted obviously does not make sense. > > By that as it may, but a few websites disagree with your conclusion. For > example > <http://codetpoint.com/java/java-oops-concept/> I would not put too much stock in that resource, though. It also says in that very definition of “class”: | […] Thus, an object is a specific instance of a class; So far, so good. However, it should be noted that a class *is* an object itself in Java (and several other OOPLs). And it continues: | it contains real values instead of variables. Which is nonsense, especially regarding Java (which that site claims to describe properly). In Java, classes have _members_; members which are not methods are _fields_ which *can* have (initial) values; they are only also called “class variables” if they are declared static (i.e., not inherited to instances). Besides, that resource is only describing *class-based* OOP, and, as it is unfortunately so often the case, its author(s) apparently assume(s) that this is the only kind of OOP. However, in particular, most of the used ECMAScript implementations only have built-in support for *prototype-based* OOP; AFAIK, built-in support for class-based OOP can only be found in JScript .NET and ActionScript 2+ as implementations of the abandoned ECMAScript Ed. 4 draft, and implementations of ECMAScript 2015 such as Microsoft TypeScript and newer versions of Google V8. -- PointedEars FAQ: <http://PointedEars.de/faq> | SVN: <http://PointedEars.de/wsvn/> Twitter: @PointedEars2 | ES Matrix: <http://PointedEars.de/es-matrix> Please do not cc me. / Bitte keine Kopien per E-Mail.
[toc] | [prev] | [next] | [standalone]
| From | John Harris <niam@jghnorth.org.uk.invalid> |
|---|---|
| Date | 2016-02-19 10:51 +0000 |
| Message-ID | <uosdcb9937dno8jauq2vbrng1g3ic43kfr@4ax.com> |
| In reply to | #29633 |
On Thu, 18 Feb 2016 23:36:27 +0100, Thomas 'PointedEars' Lahn <PointedEars@web.de> wrote: <snip> >I would not put too much stock in that resource, though. It also says in >that very definition of “class”: > >| […] Thus, an object is a specific instance of a class; > >So far, so good. However, it should be noted that a class *is* an object >itself in Java (and several other OOPLs). <snip> That's *is* in the same sense that Donald Duck *is* a duck. The Java documentation says, in <http://docs.oracle.com/javase/6/docs/api/> under 'class', "Instances of the class Class represent classes and interfaces in a running Java application." The important word is "represent". "class" is really just a shortened version of "class representative". It holds information about a class and methods to interrogate its definition. Each primitive type also has a "class representative". John
[toc] | [prev] | [next] | [standalone]
| From | Scott Sauyet <scott.sauyet@gmail.com> |
|---|---|
| Date | 2016-02-19 09:01 -0800 |
| Message-ID | <5a72710b-b597-4f8d-a579-5be4857bb9ab@googlegroups.com> |
| In reply to | #29637 |
John Harris wrote: > Thomas 'PointedEars' Lahn wrote: >> I would not put too much stock in that resource, though. It also says in >> that very definition of "class": >> >>| [...] Thus, an object is a specific instance of a class; >> >> So far, so good. However, it should be noted that a class *is* an object >> itself in Java (and several other OOPLs). > > That's *is* in the same sense that Donald Duck *is* a duck. Exactly. It's a category error. -- Scott
[toc] | [prev] | [next] | [standalone]
| From | John Harris <niam@jghnorth.org.uk.invalid> |
|---|---|
| Date | 2016-02-18 15:10 +0000 |
| Message-ID | <sknbcb98hg2k2qneqt5ov3nl1oj5m1q3f4@4ax.com> |
| In reply to | #29627 |
On 17 Feb 2016 22:42:29 GMT, ram@zedat.fu-berlin.de (Stefan Ram) wrote: <snip> > ECMAscript 2015 curiously does not use the term »class«, > but several compounds that contain »class« such as <snip> It's not so curious. The standard doesn't have much to say about the objects belonging to a class. What little is says it says by using the word instance, as in : "19.1.4 Properties of Object Instances Object instances have no special properties beyond those inherited from the Object prototype object." And "instance" isn't defined either. John
[toc] | [prev] | [next] | [standalone]
| From | Stefan Weiss <krewecherl@gmail.com> |
|---|---|
| Date | 2016-02-16 23:56 +0100 |
| Message-ID | <na09fe$1bv$1@news.albasani.net> |
| In reply to | #29618 |
On 02/16/2016 20:23, Thomas 'PointedEars' Lahn wrote: > Stefan Weiss wrote: > >> On 02/16/2016 08:36, Thomas 'PointedEars' Lahn wrote: >>> Stefan Weiss wrote: >>>> Still, if it's a plain JS library (like jQuery), you can do everything >>>> it does with plain JS yourself. >>> No, because "JS" [...] does not include APIs like the DOM that are >>> necessary to achieve this. >> >> Neither does jQuery. The environment either has access to the DOM, or it >> doesn't. In either case, everything jQuery does can be done without it. >> Besides, we were talking about browser-based components, so the >> availability of the DOM was implied. > > You are missing the point. Saying that you can do the same that jQuery does > with “plain JS” implies that you can do *those* things with “plain JS”. > But, as a matter of fact you cannot, because “plain JS” actually does not > include using APIs like the DOM that jQuery uses a lot. Really? That was your whole point? This is so boring and trivial that it hardly seems worth mentioning. Of course JavaScript programs rely on external APIs. The core language as specified is useless without a host environment - it has no built-in methods for reading, printing, or displaying anything at all. In this thread, the OP explicitly mentioned DOM elements, so the use of this API can be taken for granted. His question was: | Is it possible to achieve the same result of this script (3 dependant | drop down validation boxes) using javascript without any jquery. In this context, "plain" or "vanilla" JavaScript clearly refers to JavaScript without the use of jQuery. You would have to be very dense to misunderstand it as "JavaScript without any external APIs whatsoever". I don't think you're stupid, so I have to assume it was a deliberate misinterpretation. Sad, but not entirely unexpected. - stefan
[toc] | [prev] | [next] | [standalone]
| From | bpascal123 <bpascal123@gmail.com> |
|---|---|
| Date | 2016-02-17 04:46 -0800 |
| Message-ID | <823f6a45-d932-4615-adb4-1f4a7d0d7777@googlegroups.com> |
| In reply to | #29603 |
As this is a request and I understand it might be of interest in this discussion, here is the link to the website without the db http://multiskillz.tekcities.com/io30_0000_0000_0000_ENG_PROVIDIOMS_MENU_1.php and the db should be in a working condition there http://multiskillz.site50.net/io30_0000_0000_0000_ENG_PROVIDIOMS_MENU_1.php I'm not making any revenues from the links above, it's just free hosting and for my to keep busy during "rainy days"... and the javascript script I have posted is something I have paid for through hiring some freelance I think... Anyway that's the only investment I made in this site as I was only able to achieve a common color dependant drop down list using javascript, 2-3 years ago. With this "colored" version, all items would show but with the same color when dependant on the same previous category. It really didn't look professional, it was ok to test php/sql queries but on a public server I felt I had to find something else. -o- My question here is because I have started learning javascript and I am thinking to refactor this script in a more simple way just to go beyond usual tutorial questions and do something applicable in real life. Compared to the links above, I would like a swipe design when the result show below instead of a scrolling up down one. I could still be something jquery will achieve better than any other script If I get on this, I would try to apply function expressions and things that I am learning but I don't see where I can use. I'm learning javascript as a way to manipulate data as I think sooner or later javascript might provide apps that could compete with Excel spreadsheets. Google doc is on the way but outside cloud sharing work, it yet doesn't allow much automation like control on userform input, interaction between different workbooks or files and so on. As Javascript language go into many different directions, I don't feel I need to choose the design path (jquery, angularjs), the connection path (nodejs) and I must forget additional ones or even as my knowledge in web technos is limited think angularjs is for design when it might do more. -o- If you have any advices or corrections on this, feel free Pascal
[toc] | [prev] | [standalone]
Page 2 of 2 — ← Prev page 1 [2]
Back to top | Article view | comp.lang.javascript
csiph-web