Advertisement

02.06.2006 at 09:45AM PST, ID: 21725707
[x]
Attachment Details

Mozilla not working -- transferring between frames

Asked by eamonroche in JavaScript

Tags: mozilla, working

The Javascript code below works fine for IE. It fills a drop down list called users_list in an adjacent frame called main.
However, Mozilla just refuses to do it! Is there a reason? Or a bug-fix?
Thanks.

-------------------------------------------------------------------


<html><head><SCRIPT language="javascript1.3" type="text/javascript">
function copyOptions() {
var arrOptions = new Array;
var arrValues = new Array;
arrOptions[0] = "Smith, Orlabeth";
arrValues[0] = "2801";
var intCount =1;
var objFrame = window.parent.frames['main'];
var objForm;
var objList;
objForm = objFrame.document.frmData;
objList = objForm.elements['users_list'].options;
objList.options.length = intCount;
for (intLoop = 0; intLoop < intCount; intLoop++) {
            objList.options[intLoop].text = arrOptions[intLoop];
            objList.options[intLoop].value = arrValues[intLoop];
            }
parent.frames['main'].fDisplayMessage('1 result found.');

}</SCRIPT>
</HEAD>
<BODY bgcolor="#FFCC00" onload="javascript: copyOptions()">
</BODY>
</HTML>Start Free Trial
[+][-]02.06.2006 at 10:35AM PST, ID: 15885389

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.06.2006 at 11:33AM PST, ID: 15885930

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

Zone: JavaScript
Tags: mozilla, working
Sign Up Now!
Solution Provided By: jessegivy
Participating Experts: 2
Solution Grade: B
 
 
[+][-]02.06.2006 at 12:21PM PST, ID: 15886418

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32