Thanks Richard and Jesse for your earlier help, thats all working
now. I hope you don't mind but I could do with your assistance
again :-)
I am now trying to clear the default value of a field (which works
fine) and then restore the default value if there is no user input. The
problem is I get
Hi Daz,
The problem is, your form is being submitted. That's why it looks like it
only highlights for a second.
The easiest fix is to change onclick=validateForm() to onclick=return
validateForm(). The 'onclick' call itself needs to return false to stop
the submit.
You may want to consider
Hi Darren, what's happening is the form is doing the validation but
it's still submitting. In you preparePage() function you need to add
an event handler for the form.onsubmit() that returns false unless the
form validates.
something like
function prepareForms() {
for (var i=0; i
Hi, I just updated my blog at:
http://andreasson.org/, using some DOM scripting
à la Flash. Please give me some feedback, I've
never done this kind of stuff before (and haven't
tested it a lot yet).
cheers,
/Anton - got to get some sleep now..
--
What your body lacks, your head compensates.