[thelist] Form generated in JS doesn't work in IE

Ken Snyder kendsnyder at gmail.com
Wed May 28 14:49:54 CDT 2008

Chris Price wrote:
> ...
> http://choctaw.co.uk/clients/test/
> Thanks
The debugger says that "this" is not defined from within the getPrice 
function.  Try adding the onsubmit function with this code instead:

myForm.onsubmit = function() {
  // run the getPrice function in the context of myForm
  // so that within the getPrice function "this" refers to myForm

I know most browsers automatically run the attached function in the 
context of the owner node.  I thought IE did too, but maybe not always.

- Ken Snyder

More information about the thelist mailing list