Hello,

I've made a final "prototype" for the ToDos page. What I mean by that is 
that all the Javascript/CSS/HTML is in place and works well, but but I 
haven't added all the tasks from the ToDos page.

http://website.openoffice.org/tryouts/dcarrera/development/todo2.html

This page is meant to show exactly how everything will work. And adding 
tasks is as simple as writing HTML.

Things to note:

1) The Javascript code is clean and simple. Furthermore, it reuses code a 
lot and is designed to be easy to extend. Right now I have two sorting 
criteria (difficulty and skill). Adding an additional criteria just takes 
two lines.

For example, say we want to add a "time commitment" criteria, with 
possible values:

    -  "About 1 week"
    -  "About 2 months"
    -  "About 1 year"

You add these two lines of JS:

  var g_timeline = "any";
  function setTimeline(value) { g_timeline = value; RefreshDocument(); }

What about the options?

Options are not hard coded into the JS. They are just set in the HTML 
form. Whatever options you pick in the HTML, the JS will handle.

2) I significantly improved the HTML. The current page has really ugly 
code. Lots of BGCOLOR's, <font>'s and <b>'s everywhere. Very hard to 
maintain. Now I'm using <div> tags and CSS to make it all very clean. 
Using this system would make the page a lot more maintainable.



I have made 3 sample tasks for illustration purposes:

 Task #1 is "easy" and requires "XML".
 Task #2 is "hard" and requires "C/C++".
 Task #3 is "hard" and requires "XML".


I encourage you to play around with various settings for 'difficulty' and 
'skill' and see how the page changes automatically.

Cheers,
-- 
Daniel Carrera          | I don't want it perfect,
Join OOoAuthors today!  | I want it Tuesday.
http://oooauthors.org   | 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to