Advertisement

05.02.2008 at 12:33PM PDT, ID: 23372757
[x]
Attachment Details

Mozilla/IE compatibility problem JavaScript

Asked by Silas2 in Mozilla Web Browser, JavaScript, WebApplications

Can someone please explain why the following code works in Internet Explorer, but doesn't work in Firefox/Mozilla:
parent.frames["ctl00_ContentPlaceHolder1_LibraryFrame"].document.forms['form1'].id
or
document.frames["ctl00_ContentPlaceHolder1_LibraryFrame"].document.forms['form1'].id
when I run the code in Venkman, I keep getting:
Caught exception: TypeError: parent.frames.ctl00_ContentPlaceHolder1_LibraryFrame has no properties
when I execute the line in the console.
(The code definitely runs in Internet Explorer so I can't imagine it's a simple spelling mistake)Start Free Trial
[+][-]05.02.2008 at 04:07PM PDT, ID: 21490563

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Mozilla Web Browser, JavaScript, WebApplications
Sign Up Now!
Solution Provided By: cwolves
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628