Results 1 to 2 of 2

Thread: Problem with iframes, jsp, forms, FireFox

  1. #1
    Join Date
    Feb 2006

    Problem with iframes, jsp, forms, FireFox

    OK well, heres our problem. We (my coworker and I) are trying to get our legacy code to be Firefox compatible. So in this code there is a js file we are including in the main page and on the login submit we call the following method
    var s= '<iframe src="/getEnvVariables.jsp" style="display:none"></iframe>';
    I got the insertAdjacentHTML method working and I also tried to make things work with the iframe directly on the main page.
    Now the getEnvVariables page does load in firefox(both ways), but the form on that page won't submit in firefox unless we start the browser on getEnvVariables.jsp This is not an option though because the username and password entered are on the main page and are submitted from a form there, which getEnvironmentVariables collects in its form and then tries to submit. Here is the form code there:
    <form id="varForm" action="/setEnvVariables.jsp" method="post">
    <input type="hidden" name="javaEnabled" value=""/>

    and down below
    document.forms['varForm'].elements['javaEnabled'].value = javaEnabled;

    I've checked with alerts and the data is correctly being assigned in the form elements and it is getting past the submit statement without throwing any scripting error to Firefox's console. I'm wondering if anyone has seen anything like this or has suggestions.

  2. #2
    Join Date
    Jun 2004
    The insertAdjacent~ methods are IE-only. What you need is to use appendChild and related W3C-standard node manipulation methods.

Similar Threads

  1. Problem viewing in Firefox
    By vivek192 in forum Web Design, HTML Reference and CSS
    Replies: 0
    Last Post: 17 Jan 2006, 03:16 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts