![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||||
| |||||
|
|
Dr J R Stockton wrote: In comp.lang.javascript message <gcts9r$6g4$1 (AT) registered (DOT) motzarella.org , Sun, 12 Oct 2008 15:04:42, dhtml <dhtmlkitchen (AT) gmail (DOT) com> posted: Dr J R Stockton wrote: Another category is those questions relating to ECMAScript/DOM without reference to anything visual or external :- An 'Other' category? I think that the idea of features related only to the manipulation of ordinary variables deserves a subsection, Ah, but what is ordinary? |
|
What do you think of: ,-------------------------------------------------------------------- | | • Meta-FAQ meta-questions | * Which newsgroups deal with javascript? | * What questions are on-topic for CLJ? | * What should I do before posting to CLJ? | * Why was my post not answered? | * Why do some posts have <FAQENTRY> in them? | * How do I make a suggestion? | | • Javascript Tips "Tips" seems wrong there. "About Scripting"?? |
|
| o What is ECMAScript? | o What is JScript? | o What are object models? | o What is the document object model? | o Internationalisation and Multinationalisation in javascript. | o Where are the CLJ archives located? To previous section ? |
|
| o What does the future hold for ECMAScript? | | • Javascript Resources | o What books cover javascript? | o What online resources are available? | | • Dates | o How do I format the lastModified date with javascript? | • Numbers | o How do I convert a Number into a String with exactly 2 decimal | places? | o Why does simple decimal arithmetic give strange results? | o Why does K = parseInt('09') set K to 0? | o Why does 1+1 equal 11? or How do I convert a string to a number? | o How do I generate a random integer from 1 to N? | • Objects | o When should I use eval? | o How do I access a property of an object using a string? | • Strings and RegExps | o How do I trim whitespace? | | • DOM and Forms | o How do I get the value of a form control? | o My element is named myselect[], how do I access it? | o Why doesn't the global variable "divId" always refer to the | element with id="divId"? | o Why are my rollovers so slow? | o How do I disable the right mouse button? | o How do I detect Opera/Netscape/IE? | o How do I modify the content of the current page? | o How can I see in javascript if a web browser accepts cookies? | | • Windows and Frames | o How do I communicate between frames in a web browser? | o Why does framename.print() not print the correct frame in IE? | o How do I change print settings with window.print()? for | o I have window.status="Moomin"; why doesn't the statusbar | change? | o How can I disable the back button in a web browser? | o How do I find the size of the window? | o How do I change the text in the url/location bar? | o How do I POST a form to a new window? | o How do I change the confirm box to say yes/no or default to | cancel? | o Why do I get permission denied when accessing a frame/window? | o How do I modify the content of the current page? | o How do I prompt a "Save As" dialog for an accepted mime type? | o How do I open a new window with javascript? | o How do I check to see if a child window is open, before opening | another? | o How do I close a window and why does it not work on the first | one? | o How do I make a 10 second delay? | | • Ajax I *think* we had some of these answers before Ajax was known. |
|
| o What is Ajax? | o Why is my Ajax page not updated properly when using an HTTP GET | request in Internet Explorer? | o How do I download a page to a variable? | o How do I get a perl/asp/php variable into client-side | javascript? | o How do I log-out a user when they leave my site? | o How do I run a server side script? | o How do I force a reload from the server/prevent caching? | | • Debugging | o How do I get my browser to report javascript errors? o Debugging Tips [1] | | | • Things not to attempt in a browser | o How can I prevent access to a web page by using javascript? [2] | o How do I protect my javascript code? [2] | o How can I access the client-side filesystem? | o I have <a href="javascript:somefunction()"> what ... ? | | `-------------------------------------------------------------------------/ |
#12
| |||||||
| |||||||
|
|
In comp.lang.javascript message <gd0jg3$e06$1 (AT) registered (DOT) motzarella.org , Mon, 13 Oct 2008 15:52:50, dhtml <dhtmlkitchen (AT) gmail (DOT) com> posted: Dr J R Stockton wrote: In comp.lang.javascript message <gcts9r$6g4$1 (AT) registered (DOT) motzarella.org , Sun, 12 Oct 2008 15:04:42, dhtml <dhtmlkitchen (AT) gmail (DOT) com> posted: Dr J R Stockton wrote: Another category is those questions relating to ECMAScript/DOM without reference to anything visual or external :- An 'Other' category? I think that the idea of features related only to the manipulation of ordinary variables deserves a subsection, Ah, but what is ordinary? Approximately, those that one calls into existence with JavaScript rather than those that are properties of the original document plus added HTML things. What do you think of: ,-------------------------------------------------------------------- | | • Meta-FAQ meta-questions | * Which newsgroups deal with javascript? | * What questions are on-topic for CLJ? | * What should I do before posting to CLJ? | * Why was my post not answered? | * Why do some posts have <FAQENTRY> in them? | * How do I make a suggestion? | | • Javascript Tips "Tips" seems wrong there. "About Scripting"?? |
|
| o What is ECMAScript? | o What is JScript? | o What are object models? | o What is the document object model? | o Internationalisation and Multinationalisation in javascript. | o Where are the CLJ archives located? To previous section ? |
|
| o How do I change print settings with window.print()? for |
|
| • Ajax I *think* we had some of these answers before Ajax was known. Therefore, if so, the above heading should be more generic. |
|
| o What is Ajax? | o Why is my Ajax page not updated properly when using an HTTP GET | request in Internet Explorer? | o How do I download a page to a variable? | o How do I get a perl/asp/php variable into client-side | javascript? | o How do I log-out a user when they leave my site? | o How do I run a server side script? | o How do I force a reload from the server/prevent caching? | | • Debugging | o How do I get my browser to report javascript errors? o Debugging Tips [1] | | | • Things not to attempt in a browser | o How can I prevent access to a web page by using javascript? [2] | o How do I protect my javascript code? [2] | o How can I access the client-side filesystem? | o I have <a href="javascript:somefunction()"> what ... ? | | `-------------------------------------------------------------------------/ Otherwise OK. With anchors having names, parts can be moved at any time. (Keep the numbers, for brief short-term reference in CLJ.) |
|
[1] (condensed) : Test in small increments. Test locally, before uploading. Verify presumptions. View intermediate results. Test with many values. Check extreme cases and end-points. N.B. Debuggers report where the existence of an error is detected, which is not necessarily where the mistake is. |
|
[2] : I disagree from the usual answer. If a script can be executed in an Internet Browser, some people can read it. But many cannot read it - those who know only Right Click, View Source can be utterly defeated by breaking that operation. Many who want to protect their code do so because they want to deter their idle and obtuse classmates from copying it; the protection needs to be literally fool-proof, but not wise-proof. |
#13
| ||||
| ||||
|
|
Dr J R Stockton wrote: In comp.lang.javascript message <gd0jg3$e06$1 (AT) registered (DOT) motzarella.org , Mon, 13 Oct 2008 15:52:50, dhtml <dhtmlkitchen (AT) gmail (DOT) com> posted: What do you think of: | • Javascript Tips "Tips" seems wrong there. "About Scripting"?? How about "Language Overview" ? |
|
Otherwise OK. With anchors having names, parts can be moved at any time. (Keep the numbers, for brief short-term reference in CLJ.) The numbers are generated in a loop. If I keep them in the loop, the user will end up in the wrong place on the page. I can move them out of the loop and hard code them into the xml, like: |
|
If it is difficult to read with the underline, I can use CSS to change the appearance (blue, bold, perhaps, with underline on :hover). |
|
[1] (condensed) : Test in small increments. Test locally, before uploading. Verify presumptions. View intermediate results. Test with many values. Check extreme cases and end-points. N.B. Debuggers report where the existence of an error is detected, which is not necessarily where the mistake is. I think more complete advice on unit testing would be a lot better. |
#14
| |||
| |||
|
|
In comp.lang.javascript message <gd3tq0$qnj$1 (AT) registered (DOT) motzarella.org , Tue, 14 Oct 2008 22:07:10, dhtml <dhtmlkitchen (AT) gmail (DOT) com> posted: Dr J R Stockton wrote: In comp.lang.javascript message <gd0jg3$e06$1 (AT) registered (DOT) motzarella.org , Mon, 13 Oct 2008 15:52:50, dhtml <dhtmlkitchen (AT) gmail (DOT) com> posted: What do you think of: | • Javascript Tips "Tips" seems wrong there. "About Scripting"?? How about "Language Overview" ? Or just "Overview" to avoid quibbling as to whether all entries are about languages. Otherwise OK. With anchors having names, parts can be moved at any time. (Keep the numbers, for brief short-term reference in CLJ.) The numbers are generated in a loop. If I keep them in the loop, the user will end up in the wrong place on the page. I can move them out of the loop and hard code them into the xml, like: Keep the customary sequential numbering system. In the HTML tags, use named anchors for machines. In the HTML and News text, use visible numbers for people. |
| If it is difficult to read with the underline, I can use CSS to change the appearance (blue, bold, perhaps, with underline on :hover). No; remove all link appearance manipulation from the CSS. Default is easier for all. [1] (condensed) : Test in small increments. Test locally, before uploading. Verify presumptions. View intermediate results. Test with many values. Check extreme cases and end-points. N.B. Debuggers report where the existence of an error is detected, which is not necessarily where the mistake is. I think more complete advice on unit testing would be a lot better. Not in the FAQ, for reason of size. |
#15
| |||
| |||
|
|
The numbers are meaningless. How can they change without resulting in total confusion? For example: User reads text about Same Origin Policy with link to: /faq/index.html#FAQ4_8 This loads the page at: 5.3 How do I communicate between frames in a web browser? Does that seem strange? |
#16
| |||
| |||
|
|
Dr J R Stockton wrote: In comp.lang.javascript message <gd3tq0$qn... (AT) registered (DOT) motzarella.org , Tue, 14 Oct 2008 22:07:10, dhtml <dhtmlkitc... (AT) gmail (DOT) com> posted: Dr J R Stockton wrote: |
|
Keep the customary sequential numbering system. *In the HTML tags, use named anchors for machines. *In the HTML and News text, use visible numbers for people. There's discussion in the archive of section 2.3. If FAQ has section 2.3 being totally different it is confusing. The numbers are meaningless. How can they change without resulting in total confusion? For example: User reads text about Same Origin Policy with link to: /faq/index.html#FAQ4_8 This loads the page at: 5.3 How do I communicate between frames in a web browser? Does that seem strange? |
|
What you described is good advice, but doesn't describe what unit testing is or how to do it. |
#17
| |||||
| |||||
|
|
On Oct 16, 7:14 am, dhtml <dhtmlkitc... (AT) gmail (DOT) com> wrote: Dr J R Stockton wrote: In comp.lang.javascript message <gd3tq0$qn... (AT) registered (DOT) motzarella.org , Tue, 14 Oct 2008 22:07:10, dhtml <dhtmlkitc... (AT) gmail (DOT) com> posted: Dr J R Stockton wrote: |
|
We cannot be bound by the details of the old numbering of sections. |
|
IIRC, I suggested, when it was first evident that you were going to tackle FAQ rearrangenent, that the file at http://jibbering.com/faq/index.html should be as it were when Randy abandoned it[*], with the group |
|
having a new FAQ (atarting with your current best) at a new URL.[*] But add a luridly-boxed note about and link to the new FAQ. I doubt whether many read the archives and then try to cross-refer to the FAQ; if they must, they should use the Wayback Machine to refer to an approximately contemporaneous FAQ. |
|
What you described is good advice, but doesn't describe what unit testing is or how to do it. N.B. What I described wasn't expected to be omission-free. That's because (at least) I don't know what you mean by "unit testing"; and I expect that many of the intended FAQ audience will not know either. |
#18
| |||
| |||
|
|
What benefit do numbers add? |
#19
| ||||
| ||||
|
|
In comp.lang.javascript message <gd7qj3$l25$1 (AT) registered (DOT) motzarella.org , Thu, 16 Oct 2008 09:36:50, dhtml <dhtmlkitchen (AT) gmail (DOT) com> posted: What benefit do numbers add? The numbers should only be *used* when reading a single "issue". If the index leads a reader to think that he's like to look at sections 2.1, 3.3, and 4.7 next, he can find them by scrolling without going back at the clickable list at the top or bottom - and in News, the list is not clickable. |
|
Numbers for short-term human use, word-anchors for long-term or machine use. |
|
You *could* add a note "Section numbering is sequential and hierarchical, but the sections may change order from time to time", but it should not be needed. |
|
ISTR word processing software in which an equivalent of <ol> <li> could be used to number headings, and an Indexer would produce an index including whatever those numbers happened to be at that moment. |
#20
| |||
| |||
|
|
Breaking up the FAQ has been discussed. http://groups.google.com/group/comp.lang.javascript/browse_frm/thread... I'm interested in doing this now. I propose something along the lines of: * Numbers * Windows and Frames * Forms I would like to hear feedback on this proposal. |
![]() |
| Thread Tools | |
| Display Modes | |
| |