Wednesday, 28 July 2010

An interesting dilemma

Today, I was working again on the form JavaScript. Getting rid of the check boxes is more difficult than I originally thought. the problem is that i need to represent the activities in some way. I thought of using an array, to pass to the post page, however this requires php and I'm trying to find a way round this for reasons I'll go into in a moment.

Eventually I opted to have an activity hidden element for each activity, then a small piece of JavaScript that updates the inner HTML whenever a choice is altered. this would be bad design if there were many check boxes, but with only 6, there's no point over-engineering the site right now.

I don't want to use php, because if we're using the laptops like standalone stations it seems to me that there's no sense running an entire server on each one, and there must be a more efficient way to collect the data. It seems that JavaScript can be used to write to the server, so I'm going to pursue that route.

Aside from that not much to report. Tomorrow I'm going to add the last of the questions and get working on posting to the server.

No comments:

Post a Comment