Login   Register  
PHP Classes
elePHPant
Icontem

IE bug report

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      TM::Apeform  >  All threads  >  IE bug report  >  (Un) Subscribe thread alerts  
Subject:IE bug report
Summary:document.forms.forms.elements
Messages:2
Author:Robert Fogel
Date:2007-01-03 21:55:38
Update:2009-08-20 09:04:18
 

  1. IE bug report   Reply   Report abuse  
Picture of Robert Fogel
Robert Fogel
2007-01-03 21:55:38
A survey form I wrote runs fine of Firefox 1.5.0.9, but MS IE 7.0.5730.11 gives this error message "document.forms.forms.elements" is null or not an object." My file contains:

// Include the extended class.
require_once("example_elements.class.php"); // also has to have apeform.class in the same folder
// Instantiate an object from this class.
$form = new ExtendedApeform();

Did I do somthing wrong?



  2. Re: IE bug report   Reply   Report abuse  
Picture of Thiemo Mättig
Thiemo Mättig
2009-08-20 09:04:18 - In reply to message 1 from Robert Fogel
There are just a few lines of JavaScript in my class to set the input focus to the first form element. I used document.forms[0] before. This may fail if there are other forms in your HTML document. I rewrote the JavaScript part to use more standard compilant methods.