The Wayback Machine - https://web.archive.org/web/20190403023323/https://en.wikibooks.org/wiki/Talk:JavaScript

Talk:JavaScript

From Wikibooks, open books for an open world
Jump to navigation Jump to search

About[edit]

DOM Manipulation features[edit]

It would be nice to have a list of DOM Features, with exsamples. I'd like to see what can and what can not be modified in a page on the browser side. Ervinn 22:33, 5 July 2006 (UTC)

Sitepoint are working on that and now have a JavaScript reference section which covers the DOM Pmw57 (talk) 03:56, 21 February 2009 (UTC)
The JavaScript Wiki, which I administrate, has the beginnings of such a reference for both DOM and ordinary JavaScript types, along with useful templates for such content. The top-level category is here. --Jesdisciple (talk) 08:27, 11 May 2010 (UTC)

files[edit]

I use

 <input type="file" name="file_input" >

in a form to load a file. Normally, the user clicks it to load a file, and when the form is submitted, the file gets sent directly to the server.

Is there any way for JavaScript to read some of that file? (Perhaps something similar to the way JavaScript can read a file on the server using Programming Ajax?) So JavaScript code can check to see if it's the right sort of file (validate)? That way JavaScript could immediately tell the user to pick some other file (or cancel), rather than waiting until that file is sent to the server and rejected there.

(Is there a better place to post this kind of question? Perhaps http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference/reorg ?) --DavidCary 04:01, 30 January 2007 (UTC)

That would be a security issue. And this wikibook doesn't get much exposure and is largely inactive, so, yes, I'd advise searching for better communities to consult. --68.94.206.90 21:14, 25 November 2007 (UTC)
How is this a security issue? The section of the book that discusses this -- JavaScript/Working With Files -- currently doesn't mention any security issues; should it? --DavidCary (discusscontribs) 12:35, 8 September 2011 (UTC)

Table of Contents[edit]

I'm new at this, so I apologize if I did this wrong. The table of contents looked pretty incomplete, had some headings that I found confusing, and had a couple of things that looked like they needed to be restructured. So I just went ahead and changed what I thought needed to be changed.

I added a ton of blank new sections. I'm planning on starting to fill some of these in, but I would love to see other JavaScript programmers tackle some of them if anyone gets the inclination.

--Wanorris 9 March 2007

Thank you Wanorris for helping to structure things here - I'm going through some sections now performing many much needed tidyups. Pmw57 (talk) 09:11, 21 February 2009 (UTC)

Contributers page[edit]

Made the page to sign if going to contribute
Extremecircuitz 00:41, 1 October 2007 (UTC)

Is anyone going to do any work on this book?[edit]

I would like to propose some changes.

I think JavaScript should be regarded as a language in its own right, not just an appendage to a web browser. This means that the emphasis in the JavaScript book should be on JavaScript and how to write it well rather than on the application of JavaScript to web pages. Detailed discussions of web page document object models belong elsewhere and anyway the DOM is a sufficiently complex subject to need a book of its own. I don't mean that the DOM must not be mentioned but that it is not dependent on JavaScript nor is JavaScript dependent on it. For instance my interest in JavaScript just now is in programming inside Open Office, hence discussion of a web page DOM is irrelevant to me just now. Of course example code would frequently use the DOM but the details of the DOM should be given in a separate book linked to this one. Anyway I might contribute a chapter or two regardless of the organization. --kwhitefoot 17:38, 27 November 2007 (UTC)

Ooh... I didn't know this was here. In case anyone's still around, we have a load of relevant content at the JavaScript Tutorial. That wiki also has several general articles, and it's all licensed under the GFDL. --Jesdisciple (talk) 04:47, 2 November 2008 (UTC)

names of pages in this book[edit]

You can set up any hierarchy you want on the JavaScript/Contents page. But to make that easy to shuffle around and improve, the actual pages in this book should be named with the standard "flat" Wikibooks:Naming policy: "JavaScript/" at the beginning, followed by a chapter name -- a self-descriptive chapter name like "Bookmarklets", not a uninformative "Chapter 17". (Older names such as "Programming:JavaScript:Standards and Best Practices" will eventually be converted to new-style names like "JavaScript/Best Practices"). (If they all were old-style, then I would leave it alone -- but most of them are already new-style today). Also, all pages of this book should have the "[[Category:Javascript]]" label stuck on somewhere, so they will be automatically listed at Category:Javascript. --DavidCary 07:02, 5 December 2007 (UTC)

Cover image[edit]

See also JavaScript/Cover.
A ladybird cover image.

I have removed the image shown here in the thumb from the main page. IMHO the text "great book" is pretentious. Also, the image overcrowded the top of the page, forcing the readers to scroll down to the table of contents. A book about JavaScript would hardly have a landscape format--another downside.

--Dan Polansky (talk) 09:28, 7 September 2008 (UTC)

Program flow[edit]

What was supposed to be the content in the "program flow" section? The two options I know of either describe how JavaScript executed (e.g. executed in order from top of HTML file) or having to do with control loops (for, while, etc.) - and I think that both of these are already covered. --Sigma 7 (talk) 23:07, 6 February 2009 (UTC)

Since there wasn't any objection or comments, I removed that section from the draft version. --Sigma 7 (talk) 19:57, 22 February 2009 (UTC)

Purpose of this book[edit]

Is this book intended as a tutorial, or as a reference? At the moment it is neither. If the first, we will need to add a couple of exercises to each chapter, and much more explanation. If the latter, we will need to describe all reserved words in detail, as well as all functions.

For the moment i have assumed both. I have started creating small exercises. One additobnal problem we will have to solve is how to supply the answers as downloads: zips are not among the allowed filetypes here.

TeunSpaans (talk) 17:14, 12 May 2009 (UTC)

As the limitations here prevent delivery of top quality exercises and answers, i will stop working on this book. Sorry TeunSpaans (talk) 20:13, 15 May 2009 (UTC).

Request for Community Review[edit]

I'm revising the contents of some pages and removing others from the primary tutorial altogether. As this is a fairly sweeping change, I want to get community review before making it. If I don't hear anything within a week I'll just go ahead. Here's my revision as it stands: User:Jesdisciple/JavaScript --Jesdisciple (talk) 02:13, 14 May 2010 (UTC)

Thank You[edit]

I just want to say that as a person who knows some programming, but not JavaScript, and who now needs to know a little JavaScript, I am finding this book very helpful. Better than other things I've found so far. Communpedia Tribal (discusscontribs) 23:04, 28 February 2017 (UTC)

Navigation menu

Namespaces

Variants

More

In other languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.