Dr J R Stockton wrote:
In comp.lang.javas cript message <gc**********@r egistered.motza rella.org>
, Sun, 12 Oct 2008 15:04:42, dhtml <dh**********@g mail.composted:
>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?
and with a better title than
"Other", though I have no title suggestion. It would accommodate string
manipulation and maybe date/time, for example; also function grammar.
"Objects and Types" ?
+ "Numbers"
+ "Objects"
+ "Strings and Regexes"
+ "Dates"
The thinking behind having "Strings and Regexes" as one category is that
it's more task-oriented. How do I do [x] with a string?
>> 5.13 How do I trim whitespace?
5.17 How do I make a 10 second delay?
5.20 My element is named myselect[], how do I access it?
That one seems like it belongs in 'Forms' section, to me.
Is such an element necessarily in a form? It should be next to 5.34, or
maybe merged.
It could be a form control in a form, an attribute, a form element. Most
of the time it will be a problem with a form control.
In PHP, elements with shared name would have to be named with a "[]", as
in "things[]". I don't know if they ever fixed that.
>Cookies is part of the DOM (document.cooki e). But then so are forms.
Cookies are not really part of the document; they do not show. The
headings must relate to naive user expectations, not to technicalities.
Many things in the DOM do not show, e.g. document.defaul tView,
document.getEle mentsByTagName, document.images , document.doctyp e,
document.referr er, document.URL, document.domain , document.create Event.
>
At present there is a 1:1 mapping between questions (as precedes Section
1) and answers (bodies in Sections 4 & 5). But sometimes quite
different questions have substantially similar answers. One could start
with a list of questions, each with a link (or more?) to the relevant
answers, those having subject lines describing their contents.
A question could lead to a specific answer within that section. It
might be the case that the answer links to another answer, which exists
in a different section.
Sub-subsections might seem like a good idea but would require change to
the XML and the scripts that process that to text and HTML. I would like
to avoid that, if possible.
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 <FAQENTRYin them?
| * How do I make a suggestion?
|
| • Javascript Tips
| o What is ECMAScript?
| o What is JScript?
| o What are object models?
| o What is the document object model?
| o Internationalis ation and Multinationalis ation in javascript.
| o Where are the CLJ archives located?
| 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()?
| 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
| 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?
|
|
| • Things not to attempt in a browser
| o How can I prevent access to a web page by using javascript?
| o How do I protect my javascript code?
| o How can I access the client-side filesystem?
| o I have <a href="javascrip t:somefunction( )"what ... ?
|
|
`-------------------------------------------------------------------------/
?
The server side is inflexible to creating subcategories. The XML would
have to change and so would the two scripts for processing (it used to
be three, but I refactored that). It would probably also mess up Bart's
daily posts.
So, in the interest of getting it done, I want a hierarchy no deeper
than two.
Garrett
--
comp.lang.javas cript FAQ <URL:
http://jibbering.com/faq/ >