Tag Archives: bug

The trials and tribulations of JavaScript: part 7,984,132

I spent far too much time over the last few days wrestling with a particularly intractible JavaScript problem. I had a funky little form which the guys had built me, with an image in place of a submit button, which called the JavaScript form.submit() function to, err, submit the form. Problem is, it didn’t. It kept telling me “object does not support this property or method”. Which is damn stupid, because every fule kno that JavaScript supports the form.submit() method. My JavaScript book tells me so. The numerous website I’ve built which use it tell me so. The websites I scoured for insights into my problem told me so. I was particularly disheartened when I tried pasting one piece of sample code alongside my own, and found that their form.submit() worked and mine didn’t.
Continue reading The trials and tribulations of JavaScript: part 7,984,132