Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #33267 > unrolled thread
| Started by | justaguy <lichunshen84@gmail.com> |
|---|---|
| First post | 2017-05-10 16:57 -0700 |
| Last post | 2017-05-11 09:22 -0700 |
| Articles | 3 — 1 participant |
Back to article view | Back to comp.lang.javascript
Another generic set of questions justaguy <lichunshen84@gmail.com> - 2017-05-10 16:57 -0700
Re: Another generic set of questions justaguy <lichunshen84@gmail.com> - 2017-05-11 08:51 -0700
Re: Another generic set of questions justaguy <lichunshen84@gmail.com> - 2017-05-11 09:22 -0700
| From | justaguy <lichunshen84@gmail.com> |
|---|---|
| Date | 2017-05-10 16:57 -0700 |
| Subject | Another generic set of questions |
| Message-ID | <3fd5a513-0a05-44de-b3a3-a752caf99e8d@googlegroups.com> |
First, on the business functions in the web space for JavaScript, my rudimentary understanding is:
* Data Input
Via web form for data validation and input, particularly the latter. For instance, we can construct as many input elements as the user wants on demand.
* Data Display/Presentation
For instance, hide a section but to show it upon a click (but this seems more CSS style.display on and off).
* Data Storage (local storage with HTML5?)
Never use it, not too sure of its value...
Anything to add or change on the above?
Secondly, on the practical use or technical side of JavaScript, let's skip various standards for now, let's start with the following:
* function(s)
three types:
(1) named function
such as
function addAnotherField() {}
(2) "unnamed" function ?
such as
var addSection = function(sectionID) {}
(3) "safe" function
/* safe in the sense that var(s) inside function would be safe,
not run into conflict with same name var(s) else where in the same file
*/
such as
(function() {}
})();
* event(s)
a way to call a JavaScript function
for instance, onclick.
* special "object"?
for instance, this, for the current object.
Question, anything seems to "this" in JavaScript that has a special purpose?
Please add or edit the above and continue.
Thanks.
[toc] | [next] | [standalone]
| From | justaguy <lichunshen84@gmail.com> |
|---|---|
| Date | 2017-05-11 08:51 -0700 |
| Message-ID | <6d39632b-1698-475e-8a5d-2ffe3b8b6d37@googlegroups.com> |
| In reply to | #33267 |
On Wednesday, May 10, 2017 at 7:57:22 PM UTC-4, justaguy wrote:
> First, on the business functions in the web space for JavaScript, my rudimentary understanding is:
> * Data Input
> Via web form for data validation and input, particularly the latter. For instance, we can construct as many input elements as the user wants on demand.
> * Data Display/Presentation
> For instance, hide a section but to show it upon a click (but this seems more CSS style.display on and off).
> * Data Storage (local storage with HTML5?)
> Never use it, not too sure of its value...
>
I'd like to add, in sum, DOM manipulation.
> Anything to add or change on the above?
>
> Secondly, on the practical use or technical side of JavaScript, let's skip various standards for now, let's start with the following:
* array
* object
> * function(s)
> three types:
> (1) named function
> such as
> function addAnotherField() {}
> (2) "unnamed" function ?
> such as
> var addSection = function(sectionID) {}
> (3) "safe" function
> /* safe in the sense that var(s) inside function would be safe,
> not run into conflict with same name var(s) else where in the same file
> */
> such as
> (function() {}
> })();
>
> * event(s)
> a way to call a JavaScript function
> for instance, onclick.
>
> * special "object"?
> for instance, this, for the current object.
> Question, anything seems to "this" in JavaScript that has a special purpose?
>
> Please add or edit the above and continue.
>
> Thanks.
[toc] | [prev] | [next] | [standalone]
| From | justaguy <lichunshen84@gmail.com> |
|---|---|
| Date | 2017-05-11 09:22 -0700 |
| Message-ID | <a8a302c6-3303-415f-bb96-fe216ef850b0@googlegroups.com> |
| In reply to | #33276 |
On Thursday, May 11, 2017 at 11:51:42 AM UTC-4, justaguy wrote:
> On Wednesday, May 10, 2017 at 7:57:22 PM UTC-4, justaguy wrote:
> > First, on the business functions in the web space for JavaScript, my rudimentary understanding is:
> > * Data Input
> > Via web form for data validation and input, particularly the latter. For instance, we can construct as many input elements as the user wants on demand.
> > * Data Display/Presentation
> > For instance, hide a section but to show it upon a click (but this seems more CSS style.display on and off).
> > * Data Storage (local storage with HTML5?)
> > Never use it, not too sure of its value...
> >
>
> I'd like to add, in sum, DOM manipulation.
>
>
> > Anything to add or change on the above?
> >
> > Secondly, on the practical use or technical side of JavaScript, let's skip various standards for now, let's start with the following:
> * array
> * object
>
* variable
of two types:
local variable and GLOBAL variable
> > * function(s)
> > three types:
> > (1) named function
> > such as
> > function addAnotherField() {}
> > (2) "unnamed" function ?
> > such as
> > var addSection = function(sectionID) {}
> > (3) "safe" function
> > /* safe in the sense that var(s) inside function would be safe,
> > not run into conflict with same name var(s) else where in the same file
> > */
> > such as
> > (function() {}
> > })();
> >
> > * event(s)
> > a way to call a JavaScript function
> > for instance, onclick.
> >
> > * special "object"?
> > for instance, this, for the current object.
> > Question, anything seems to "this" in JavaScript that has a special purpose?
> >
> > Please add or edit the above and continue.
> >
> > Thanks.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.javascript
csiph-web