Click to See Complete Forum and Search --> : Dynamic Textbox Values


hismightiness
12-05-2003, 03:03 PM
I am in the need to create a JavaScript which takes the date entered into one field and automatically parses the string entered and enters consecutive dates in other textbox fields for the rest of the week.

Example:
Monday: *textbox* (onblur event triggers JS which fills in the rest of the fields)
Tuesday: *textbox* (readonly)
Wednesday: *textbox* (readonly)
Thursday: *textbox* (readonly)
Friday: *textbox* (readonly)
Saturday: *textbox* (readonly)
Sunday: *textbox* (readonly)

This all should be done with textbox fields and I would like to use the onblur event. Does anyone know of a place where a similar function is performed anywhere so I can get an idea of how to do this? I can already account for the date to be filled in correctly in the following format MM/DD/YYYY.

I am getting pretty familar with JavaScript, but I am not good at parsing and returning strings using JavaScript yet.

Khalid Ali
12-06-2003, 07:18 AM
WHat do you mean when you say "parses" the string..
1. Get theinput in one field.
2.validate if its the correct format
3. fill out all other fields??????

hismightiness
12-06-2003, 11:18 AM
Perhaps I used the wrong word? I mean to determine the day of the date and then increment it to reflect the consecutive days for the other fields.