Hamshire2004 would you like to create more guides together with me? I think it would benefit us and the user reading our guides.
--Xora 19:01, 21 May 2007 (UTC)
- Variables/Operators and Functions (discussing how to declare a basic variable and a basic function)
- Language Constructs (i.e., if statements, case statements, loops, etc.)
- Possibly forms, HTML input features, etc.
Hampshire2004 17:34, 16 May 2007 (UTC)
I've started the second lesson, but it needs more information on operators and arrays (and possibly some more explanation on variables). Another possibility would be to add some suggested exercises.
Hampshire2004 20:05, 17 May 2007 (UTC)
- The Common.js and Monobook.js pages in the MediaWiki: namespace show up site-wide, hense consensus should be reached befor changing them. However, you can add monobook.js and monobook.css pages to your User: space - Example: User:Sebmol/monobook.js, User:Sebmol/monobook.css. I'm not yet aquainted with how to implement this, but obviously there are people here and many at Wikipedia who are. Maybe we can work this into a research and development project. BTW, Hampshire2004, where's your user page? CQ 16:49, 23 May 2007 (UTC)
Additionally, if your script is in the header, document.write inserts at the beginning of the body tag. What happens if you want to insert after some child, or grandchild node in the body? document.write would require that your script be placed in the exact spot you want your text.
All of that combined, I think, makes document.write NOT the defacto standard for writing text to the document. In fact, it's usefulness, in my opinion, is almost entirely limited to debugging.
I can barely bring myself to read any further...
Um, being a totally object oriented language, how could you possibly leave out objects as a way to store data? /me shakes head...
Oh okay, one more. lol "This may allow him..." Obviously, not all programmers are men. Perhaps a more gender neutral style is called for in the 21st century? Edited by Floydian at www.phphorizons.com
Should it not read:
document.write("The color of a cherry is " + colors["cherry"] + ", but the color of a lime is " + colors["lime"]);
document.write("The color of a cherry is " + colors[cherry] + ", but the color of a lime is " + colors[lime]);
for the given example?--JimmyK 22:51, 22 July 2009 (UTC)