Closed Bug 417482 Opened 16 years ago Closed 14 years ago

document.forms doesn't contain form refreshed by an AJAX request

Categories

(Firefox :: General, defect)

2.0 Branch
x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: gerix, Unassigned)

References

Details

(Whiteboard: [CLOSEME 2010-07-30])

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12

I work on a project that use some AJAX request (a4j). When we refresh the form node by an AJAX request, this form is not present in document.forms array and not accessible by document.forms['myformname'] notation (but the name attribute of the form is present). It result that some third party script crash.

Reproducible: Always

Steps to Reproduce:
1.Do an AJAX request to refresh a form node
2.try to access document.forms
3.
please provide a reduced testcase.
Summary: document.forms doesn't contains form refreshed by an AJAX request → document.forms doesn't contain form refreshed by an AJAX request
I have the same problems. After form rerender the array document.forms don't contain this form, but the array of document.getElementsByTagName('form') has all forms.

Browsers:
Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.8.1.7) Gecko/20070914 Firefox/2.0.0.7
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.12) Gecko/20080218 BonEcho/2.0.0.12
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12

Reproducible: Always

Steps to Reproduce:
1) Deploy war on Tomcat 6.0 .
2) Go to page http://localhost:8081/bugTesting .
3) Alert show that document.forms contains "mainForm" and "anotherForm".
4) Click on "send" button.
5) Oncomplete event alert show that document.forms doesn't containt "mainForm", but document.getElementsByTagName('form') contains it.

PS. war file with test application in the next attachment.
War file with test application can be downloaded from:
http://tvpayrev.belhard.com/bugTesting.war
This bug was originally reported on Firefox 2.x or older, which is no longer supported and will not be receiving any more updates. I strongly suggest that you update to Firefox 3.6.6 or later, update your plugins (flash, adobe, etc.), and retest in a new profile. If you still see the issue with the updated Firefox, please post here. Otherwise, please close as RESOLVED > WORKSFORME
http://www.mozilla.com
http://support.mozilla.com/kb/Managing+profiles
http://support.mozilla.com/kb/Safe+mode
Whiteboard: [CLOSEME 2010-07-30]
Version: unspecified → 2.0 Branch
No reply, INCOMPLETE. Please retest with Firefox 3.6.8 or later and a new profile (http://support.mozilla.com/kb/Managing+profiles). If you continue to see this issue with the newest firefox and a new profile, then please comment on this bug.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.