[Javascript] onreset functionality in MS/IE

Ron Wingfield rtwingfield at archaxis.net
Fri Jan 14 14:40:16 CST 2005


Well, . . .I have added the same instruction to a much simpler Perl/JavaScript pgm., and it works as advertised.  The program in which it fails, has a lot going on in it.  I'll take a look at the code after lunch, and if I cannot solve the problem, I may update the question.

Thanks,
Ron W.
--------------------------------------------------------------------------------

  ----- Original Message ----- 
  From: Hakan M (Backbase) 
  To: [JavaScript List] 
  Sent: Friday, January 14, 2005 12:07 PM
  Subject: Re: [Javascript] onreset functionality in MS/IE


  I've always thought of O'Reilly as a very reliable source of 
  information, so I'm wondering if this is the only JavaScript that your 
  are executing.

  The following example works in IE6 for me:
  http://www.idocs.com/tags/forms/_FORM_onReset.html

  Is the thing you're working on accessible for the people on this list? 
  If I could see the whole page I might be able to help you out more.

  Regards,
  H

  Ron Wingfield wrote:
  > The following code is lifted straight out of David Flanagan's book, 
  > /JavaScript,_ the Definitive Guide_/, p.251, O'Reilly and Associates, 2002. 
  >  
  > 
  >     <form. . .
  >           onreset="return confirm('Really erase ALL data and start over?')"
  >      >
  > 
  >  
  > This is the actual code from the "/show source/" editor:   (. . .looks 
  > OK to me.)
  >  
  > 
  >     <form
  >        method="get"
  >        action="applications_01.pl"
  >        enctype="application/x-www-form-urlencoded"
  >        onreset="return confirm('Really erase ALL data and start over?')"
  >        name="vendors_01.pl">
  > 
  >  
  > MS/IE v6.0.2800.1106 (running under Windows-98) returns the following error:
  >  
  > 
  >     Error:  Object doesn't support this property or method.
  > 
  >  
  > So, . . .is this a browser problem?
  >  
  > OTTF,
  > Ron Wingfield
  >  
  > FreeBSD 4.8  --  Apache http 2.0.28 -- MySQL client/server 4.1.7
  > Perl 5.8.5 -- p5-DBD-mysql-2.9004 driver -- p5-DBI-1.46
  > 
  > 
  > ------------------------------------------------------------------------
  > 
  > _______________________________________________
  > Javascript mailing list
  > Javascript at LaTech.edu
  > https://lists.LaTech.edu/mailman/listinfo/javascript
  _______________________________________________
  Javascript mailing list
  Javascript at LaTech.edu
  https://lists.LaTech.edu/mailman/listinfo/javascript
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20050114/df492c39/attachment.htm>


More information about the Javascript mailing list