Advertisement

10.04.2008 at 07:38PM PDT, ID: 23788094 | Points: 125
[x]
Attachment Details

javascript issue

Asked by jcgroove in JScript, Firefox Web Browser, Dynamic HTML (DHTML)

Tags: ,

I am trying to write a script to change the background color of the "upper" frame based on a hidden form input "id" in a different frame: "main".
I have script that works in IE:

if (parent.Top) {

            if (document.nodeForm.classification_id.value == "C")

                  parent.Top.document.body.style.backgroundColor = "#33FFFF";

            else if (document.nodeForm.classification_id.value == "S")

                  parent.Top.document.body.style.backgroundColor = "#FF0000";

            else

                  parent.Top.document.body.style.backgroundColor = "#CCCCCC";

      }


But it doesn't work in firefox.
Please help!Start Free Trial
[+][-]10.04.2008 at 09:19PM PDT, ID: 22643409

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.

 
[+][-]10.04.2008 at 09:34PM PDT, ID: 22643431

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.

 
[+][-]10.04.2008 at 09:55PM PDT, ID: 22643473

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.

 
[+][-]10.04.2008 at 10:36PM PDT, ID: 22643524

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.

 
[+][-]10.04.2008 at 10:45PM PDT, ID: 22643531

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.

 
[+][-]10.04.2008 at 11:54PM PDT, ID: 22643652

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.

 
[+][-]10.05.2008 at 06:32AM PDT, ID: 22644424

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.

 
[+][-]10.05.2008 at 08:56AM PDT, ID: 22645021

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.

 
[+][-]10.05.2008 at 09:16AM PDT, ID: 22645095

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.

 
[+][-]10.05.2008 at 10:15AM PDT, ID: 22645291

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.

 
 
Loading Advertisement...
20080716-EE-VQP-32 - Hierarchy / EE_QW_2_20070628