Jquery.post not working in firefox
<p>I wrote a javascript that loads a webpage from a web application using Jquery.post. I display the page in iframe . The webpage gets displayed in IE  but not in firefox. I tried using Firebug but there is no error , it has a 302 OK note. I tried changing the Jquery source that also  did not work. Tried JSON that also did not work. Its more than 3 days i am trying  to fix this issue. I tried lot of methods but it was not fruitful.</p>

<pre><code> &lt;html&gt;
  &lt;head&gt;
     &lt;script      type="text/javascript"src="http://ajax.microsoft.com/ajax/jquery/jquery1.4.2.min.js"&gt;
     &lt;/script&gt;
    &lt;script type="text/javascript"&gt;


    function callajax()
    {
       var iframe =document.createElement("iframe");
       iframe.style.width="100%";
       iframe.style.height="100%";
       //app.getContentEl().appendChild(iframe);
       document.body.appendChild(iframe);
       jQuery.post('http://localhost:9090/simpleapp/formproc1',     {'param':'rajat'},function(html){


        var doc =iframe.contentWindow.document;
        doc.write(html);
        doc.close();
        });
        }



        &lt;/script&gt;
        &lt;/head&gt;

        &lt;body&gt;
         &lt;p&gt;Start typing a name in the input field below:&lt;/p&gt;
         &lt;span&gt;&lt;/span&gt;
         &lt;div id="display"&gt;&lt;/div&gt;
         First name:

         &lt;input type="text" /&gt;

         &lt;button onclick="callajax()"&gt;Click me&lt;/button&gt;
         &lt;/body&gt;
         &lt;/html&gt;
</code></pre>

<p>i  will also enclose the post method since it might also be an erroneous one.</p>

<pre><code>      doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
</code></pre>

<p>// TODO Auto-generated method stub</p>

<pre><code>      PrintWriter out = response.getWriter();

      String par = request.getParameter("param");

       System.out.print("Hiii this is inside POST method");

        //out.println("&lt;data&gt;&lt;param&gt;"+par+"&lt;/param&gt;&lt;/data&gt;");

        //out.println(par);

        //out.flush();

        //System.out.print(par);

         response.sendRedirect("first.jsp");

         // out.println("{\"redirect\":\"first.jsp\"}");

         }
</code></pre>
