PDA

View Full Version : Cannot access forms remotely in FF


cmetz1977
05-28-2008, 12:40 PM
I am trying to access a form in FF from outside a page. For example, i want a page that is loaded into my iframe to populate a form on my parent page.

This works in IE/Opera/Safari, but not FF. I am using 'parent.formname' (instead of 'document.formname' locally) to access the form element. However, if I run 'alert( parent.formname )' in FF, it alerts that the element is 'undefined'.

Do I need to add/modify an attribute in my form to allow remote access? Is this a limitation in FF? Am I navigating the DOM incorrectly?

Thank you in advance.

Clueful
05-28-2008, 03:41 PM
I am trying to access a form in FF from outside a page. For example, i want a page that is loaded into my iframe to populate a form on my parent page.

This works in IE/Opera/Safari, but not FF. I am using 'parent.formname' (instead of 'document.formname' locally) to access the form element. However, if I run 'alert( parent.formname )' in FF, it alerts that the element is 'undefined'.

Do I need to add/modify an attribute in my form to allow remote access? Is this a limitation in FF? Am I navigating the DOM incorrectly?

Thank you in advance.Use:
parent.document.forms.formName

cmetz1977
05-28-2008, 04:22 PM
Beautiful!