HighDots Forums  

FAQ Sections - Feedback Wanted

Javascript JavaScript language (comp.lang.javascript)


Discuss FAQ Sections - Feedback Wanted in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
Dr J R Stockton
 
Posts: n/a

Default Re: FAQ Sections - Feedback Wanted - 10-14-2008 , 03:44 PM






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:
Quote:
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.



Quote:
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"??

Quote:
| 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 ?

Quote:
| 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.
Therefore, if so, the above heading should be more generic.

Quote:
| 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.

--
(c) John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v6.05 MIME.
Web <URL:http://www.merlyn.demon.co.uk/> - FAQish topics, acronyms, & links.
Proper <= 4-line sig. separator as above, a line exactly "-- " (SonOfRFC1036)
Do not Mail News to me. Before a reply, quote with ">" or "> " (SonOfRFC1036)


Reply With Quote
  #12  
Old   
dhtml
 
Posts: n/a

Default Re: FAQ Sections - Feedback Wanted - 10-15-2008 , 01:07 AM






Dr J R Stockton wrote:
Quote:
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"??

How about "Language Overview" ?

Quote:
| 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 ?

Yes.



Quote:
| o How do I change print settings with window.print()?
for
Sure.


Quote:
| • Ajax
I *think* we had some of these answers before Ajax was known.
Therefore, if so, the above heading should be more generic.

Client/Server Communication?

Might be some crossover with the "Forms" questions.

Quote:
| 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.)

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:

<CONTENT ID="parseInt" NUMID="FAQ4_7">,


- then the page and the Mon/Wen mailings will look like:

5.9 Why does framename.print() not print the correct frame in IE?
5.30 I have window.status="Moomin"; why doesn't the statusbar change?
5.6 How do I communicate between frames in a web browser?

I find that to be a very confusing presentation.

It would be much better to not display numbers on the page then to
display them out of order.

So, will add the NUMID to the xml CONTENT elements and render that as an
empty link:

<a name="FAQ4_7"></a>

For the Mon/Wen posting, the number will not be shown and nothing will
replace it. We've been with numbers for a long long time. It's time to
say goodbye to them.

I will use the old version of the index page, restoring the links in the
archives that point to updated questions.

The text of each question in the TOC will be linked to the answer.

If it is difficult to read with the underline, I can use CSS to change
the appearance (blue, bold, perhaps, with underline on :hover).

Alternatively, I could use a way to display the answer below the
question, by toggling it.

+ What is blah blah ?


- What is blah blah ?
/answer:/
Lorem blah does not work with mork. To fix this, you should
instead use blah blah blah...


Quote:
[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.

Quote:
[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.

Those who only know right click would seem so clueless as to be totally
harmless. I don't think its worth adding that at all.

The worst Q/A pair I've found is the "what are object models (OMs)?" A
question such as "What is a Host object?" or "Is the DOM part of
ECMAScript?" could much better address discussion of Host objects than
the current "OMs" question.

For now, I have to go through the XML file and add the NUMID attribute
so that it exactly matches the one of the TOC before I changed it.

I do not intend to change the current fragment identifiers. Although
there may be better IDs, there are already links to them. Changing them
doesn't seem to offer that much benefit.

Garrett

--
comp.lang.javascript FAQ <URL: http://jibbering.com/faq/ >


Reply With Quote
  #13  
Old   
Dr J R Stockton
 
Posts: n/a

Default Re: FAQ Sections - Feedback Wanted - 10-15-2008 , 02:07 PM



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:
Quote:
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.



Quote:
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.




Quote:
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.




Quote:
[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.




Suggestion : in "3.2 What online resources are available?" add a new
sub-section "FAQ Notes", start it with the existing FAQ material about
the Notes (changing the last paragraph of Section 1 to "There are _FAQ
Notes_." linking to the new sub-section, and append a list of FAQ Note
Subjects each linking to its Note. Then simplify the migrated waffle.

--
(c) John Stockton, nr London, UK. ?@merlyn.demon.co.uk Turnpike v6.05.
Web <URL:http://www.merlyn.demon.co.uk/> - w. FAQish topics, links, acronyms
PAS EXE etc : <URL:http://www.merlyn.demon.co.uk/programs/> - see 00index.htm
Dates - miscdate.htm moredate.htm js-dates.htm pas-time.htm critdate.htm etc.


Reply With Quote
  #14  
Old   
dhtml
 
Posts: n/a

Default Re: FAQ Sections - Feedback Wanted - 10-16-2008 , 02:14 AM



Dr J R Stockton wrote:
Quote:
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.

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?

Compare:

http://jibbering.com/faq/index.html
http://jibbering.com/faq/indextest.html

I think the second one looks bad with that style of CSS.

Quote:


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.

What you described is good advice, but doesn't describe what unit
testing is or how to do it.

I see many teams where they test the Java code, then, for the
javascript, the F/E team does nothing; they do not know how to unit test
their scripts. The code becomes unmanageable.

So, I'm not putting that up there.

Good general advice on testing:
http://blog.objectmentor.com/articles/2007/10/20/architecture-is-a-second-order-effect

But that does not explain how to test.

Garrett


--
comp.lang.javascript FAQ <URL: http://jibbering.com/faq/ >


Reply With Quote
  #15  
Old   
Bart Van der Donck
 
Posts: n/a

Default Re: FAQ Sections - Feedback Wanted - 10-16-2008 , 06:15 AM



dhtml wrote:

Quote:
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?
Yes, but this is an internal kitchen that stands apart from Usenet.
I'ld like to mention that the program that daily sends out a FAQ
entry, uses its internal couning mechanism (chapters/numbers)
according to the structure of the XML file only:

<FAQ>
<TITLE>comp.lang.javascript FAQ</TITLE>
<CONTENTS>
<CONTENT TITLE="chapter name">
<CONTENT TITLE="entry title">
text with <additional> </tags> in it
</CONTENT>
...more entries in the same chapter...
</CONTENT>
...more chapters with their entries...
</CONTENTS>
</FAQ>

The reason is of sheer technical nature; the program must store the
sent entry in order to know which will be the entry for the next day.
This is the logic:

(1) If a next entry exists within the same chapter, then send it and
quit.
(2) If (1) fails: take the first entry of the next chapter, send it
and quit (except the entries of the last chapter, as requested by Dr J
R Stockton, those are never sent because not relevant towards Usenet)
(3) If (2) fails: start over from the beginning, send first entry in
first chapter.
(4) If (3) fails: quit with error.

--
Bart


Reply With Quote
  #16  
Old   
Dr J R Stockton
 
Posts: n/a

Default Re: FAQ Sections - Feedback Wanted - 10-16-2008 , 08:20 AM



On Oct 16, 7:14*am, dhtml <dhtmlkitc... (AT) gmail (DOT) com> wrote:
Quote:
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:

Quote:
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?
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.



Quote:
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.

--
(c) John Stockton, near London, UK. Posting with Google.
Mail: J.R.""""""""@physics.org or (better) via Home Page at
Web: <URL:http://www.merlyn.demon.co.uk/>
FAQish topics, acronyms, links, etc.; Date, Delphi, JavaScript, ....|


Reply With Quote
  #17  
Old   
dhtml
 
Posts: n/a

Default Re: FAQ Sections - Feedback Wanted - 10-16-2008 , 12:36 PM



Dr J R Stockton wrote:
Quote:
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:



Quote:
We cannot be bound by the details of the old numbering of sections.
What benefit does numbering have?

It isn't as if section 1 must be read completely before beginning to
read section 2.


In such a document, "Numbers" has meaning. "4" does not.


Quote:
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
Yes, you did.

Quote:
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.


We still have the problem of changing. When a hypothetical future
section 5 gets split to two sections, we have to renumber. Doing this
creates confusion.

What benefit do numbers add?


Quote:
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.

Unit testing javascript is excellent topic for discussion here.

(runs out to work)...

Garrett


Reply With Quote
  #18  
Old   
Dr J R Stockton
 
Posts: n/a

Default Re: FAQ Sections - Feedback Wanted - 10-16-2008 , 03:09 PM



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:
Quote:
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.

--
(c) John Stockton, nr London UK. ?@merlyn.demon.co.uk Turnpike v6.05 MIME.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/&c., FAQqy topics & links;
<URL:http://www.merlyn.demon.co.uk/clpb-faq.txt> RAH Prins : c.l.p.b mFAQ;
<URL:ftp://garbo.uwasa.fi/pc/link/tsfaqp.zip> Timo Salmi's Turbo Pascal FAQ.


Reply With Quote
  #19  
Old   
dhtml
 
Posts: n/a

Default Re: FAQ Sections - Feedback Wanted - 10-16-2008 , 10:16 PM



Dr J R Stockton wrote:
Quote:
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.

It seems easier to main text that mentions a particular section. Than to
tell the reader to read section 2.1 and make sure that means the latest
section represented by the number 2.1 not a section that previously had
that number.

Quote:
Numbers for short-term human use, word-anchors for long-term or machine
use.

For humans, it seems to me that a heading "Numbers" or "Forms" has more
relevant meaning than a number "4" or "5" for short, or long term use.
Numbers would seem useful if order mattered.

In the 'news' messages, it the question can be displayed with the
relevant header.

A question appears as a TITLE attribute for a CONTENT element. Its
header is always that CONTENT's parentNode's TITLE, so:

var q = node.attributes.getNamedItem('TITLE'),
section = node.parentNode.attributes.getNamedItem('TITLE');


If outputting one question is desired, and it is required that the
relevant header preceed the question, the code would look like:-

output += "*" + section + "*\n"
+ q;


Quote:
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.

someone arriving at index.html#FAQ3_5 is not going to see that note,
unless the note exists right before #FAQ3_5, in which case, someone
arriving at index.html#4_11 is not going to see it.

Quote:
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.

The headings are currently numbered. It's done in a for loop. It could
also be done using an OL.

--
comp.lang.javascript FAQ <URL: http://jibbering.com/faq/ >


Reply With Quote
  #20  
Old   
sasuke
 
Posts: n/a

Default Re: FAQ Sections - Feedback Wanted - 10-18-2008 , 10:33 AM



On Oct 10, 10:47*pm, dhtml <dhtmlkitc... (AT) gmail (DOT) com> wrote:
Quote:
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.
The FAQ presents little [no?] information about `encoding' related
issues which do get asked frequently here. Many of them are along the
lines of:
- escape / unescape functions don't work well for Non-ASCII character
- encodeURIComponent to be used for encoding URI components rather
than encodeURI
- Setting the HTTP Request Header `Content-Type: x-www-
formurlencoded' when making asynchronous requests doesn't
automagically encode the data being submitted.

These are some of the points which have come across in this group in
the past few days related to encoding. It would be nice to have
someone come up with a short FAQ entry related to this topic.

/sasuke


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.