Need help with something - just will not work no matter what.
I've got some javascript on a blog post and page. The visitor enters some information and clicks "calculate" and out spits an answer.
It works fine if I force the user into each field and perform the calculation on the "onfocus" event but will not work when I put the code into a function and the "onclick" event calls the function.
WP reports an error "object expected" - makes no sense to me at all since the code is correct - I've checked for semi-colons etc., and everything is there.
Will do more debugging - but hoping someone might have some thoughts as to why something so simple would fail using the "onclick" event handler.
Thx...
I've got some javascript on a blog post and page. The visitor enters some information and clicks "calculate" and out spits an answer.
It works fine if I force the user into each field and perform the calculation on the "onfocus" event but will not work when I put the code into a function and the "onclick" event calls the function.
WP reports an error "object expected" - makes no sense to me at all since the code is correct - I've checked for semi-colons etc., and everything is there.
Will do more debugging - but hoping someone might have some thoughts as to why something so simple would fail using the "onclick" event handler.
Thx...