13 Replies Latest reply on Apr 25, 2008 11:23 AM by Peter Johnson

    Web pages are not running on mozilla

    naina sharma Newbie

      Hiiiiiiiiii
      I have made a application using jboss 4.0.2 + jdk1.5 + ant 1.6.5. I am using a login servlet which will get a request from user through login.html page.When login name and password is verified it will call ejb.this thing is working fine on windows and internet explorer.But when i tried to run it on suse10.1 .jar and war files are deployed and server also get notified.But when i access that page i enterd password and username .It doesnt go to next page.Please tell me where i am wrong .Thanx in advance

        • 1. Web pages are not running on mozilla
          naina sharma Newbie

          Hii All
          Please help me Its urgent.when i am running my application on internet explorer its running fine.But when i try to run it from mozilla request from my webpage dnt go to jbossserver .what cud be the reason?? please help me.

          • 2. Web pages are not running on mozilla
            naina sharma Newbie

            Hii All
            Please help me Its urgent.when i am running my application on internet explorer its running fine.But when i try to run it from mozilla request from my webpage dnt go to jbossserver .what cud be the reason?? please help me.

            • 3. Re: Web pages are not running on mozilla
              Peter Johnson Master

              I have run web apps using IE and Firefox on Windows, and Firefox on Linux, without any problems. (Well, after I tell the NoScript Firefox plugin to allow scripts to run, in some cases.)

              Does the app work correctly with Firefox on Windows?

              What libraries/technologies are you using in your web apps? AJAX? Spring MVC? JSF? Wicket?

              • 4. Re: Web pages are not running on mozilla
                naina sharma Newbie

                No I am not using any one of these techonologies.My web pages contain only html and java script and jsp .Nothing else.I am getting same problem on firefox on windows.I am able to view the pages in firefox.But when i say submit request doesnt go to server

                • 5. Re: Web pages are not running on mozilla
                  Peter Johnson Master

                  When you submit the data, what happens? Does the browser window go blank? You get an error? The login page remains?

                  Also, are there any error in the console log?

                  What add-ons do you have in Firefox, could any of them be causing the problem? (I had a problem with downloads due to an add-on.) For example, if you have NoScript installed nad are not allowing JavaScript to run and that script is essential for the login page, nothing will happen.

                  Do you have the Tamper Data add-on? If not, install it and us it to ensure that requests are being sent by the browser.

                  Once you are sure that requests are being sent by the browser, use a tool like WireShark to monitor the network traffic.

                  • 6. Re: Web pages are not running on mozilla
                    naina sharma Newbie

                    when i click on submit button the login page just get refreshed.
                    On server there is no request or information.I did nt install any plugin or add-on on firefox.Its the default version that come with fedora 8

                    • 7. Re: Web pages are not running on mozilla
                      Peter Johnson Master

                      By "the login pages gets refreshed", I assume you mean that the browser goes blank, the icons that indicate a page is loading are in motion, and then the login page is displayed again.

                      This sounds like data is being sent but login is not happening. Time to install the Tamper Data add-on and see what is being sent.

                      • 8. Re: Web pages are not running on mozilla
                        naina sharma Newbie

                        hi
                        thanx for ur support is there any other way out??Bcos my website will be used by multiple users .I cnt tell each one to install plugin on there firefox.

                        • 9. Re: Web pages are not running on mozilla
                          Peter Johnson Master

                          I am not saying that every user has to install this plugin. In fact, installing the plugin will not fix the problem, it will only help in debugging the problem.

                          The other option is if you can reproduce the problem using a minimum number of files (for example, one servlet, one jsp, web.xml, and an html file to secure), and then post the contents of the files. If you do this, make sure that you bracket the file contents with [ code ] ... [ /code ] brackets (select the text and click the Code button).

                          • 10. Re: Web pages are not running on mozilla
                            naina sharma Newbie

                            HII

                            This is my html page

                            <SCRIPT language=JavaScript>
                            
                            
                            
                            </SCRIPT>
                            
                            <html>
                            
                            
                            
                            <head>
                            
                            <TITLE>MANTR</TITLE>
                            
                            </head>
                            
                            <frameset rows="130px,67%,12px" noresize framespacing="0" border="5" frameborder="0">
                            
                             <frame name="top" scrolling="no" target="middle" border="5" noresize src="Heading.html" marginwidth="0" marginheight="0" noresize>
                            
                             <frame name="middle" target="bottom" noresize src="middle.html" border="5" marginwidth="0" marginheight="0" scrolling="auto" noresize>
                            
                             <frame name="bottom" noresize src="Footer.html" target="_self" scrolling="no" border="5" marginwidth="0" marginheight="0" noresize>
                            
                             <noframes>
                            
                             <body topmargin="0" leftmargin="0" bgcolor="#E2EDFE" >
                            
                             <p>This page uses frames, but your browser doesn't support them.</p>
                            
                             </body>
                            
                             </noframes>
                            
                            </frameset>
                            
                            
                            
                            </html>
                            


                            this is my middle.html



                            
                            
                            
                            
                            <HTML>
                            
                            <HEAD>
                            
                            
                            
                            <TITLE>EILMT
                            
                            </TITLE>
                            
                            
                            
                            
                            
                            
                            
                            </HEAD>
                            
                            
                            
                            
                            
                            <BODY bgcolor="#FEFCE2" >
                            
                            <form name="Input_Form1" method="post">
                            
                            
                            
                            
                            
                            <CENTER>
                            
                            <TABLE BORDER="0" WIDTH="100%" Height="100%" >
                            
                            
                            
                            <TR>
                            
                            
                            
                             <TD >
                            
                            
                            
                            <CENTER>
                            
                            <TABLE BORDER= "0" WIDTH= "480" HEIGHT="80%" bordercolor="#800000" >
                            
                            <TR><TD width="470">
                            
                            <CENTER><TABLE BORDER= "0" WIDTH= "50%"HEIGHT="40%">
                            
                            
                            
                            <TR>
                            
                             <TD> <strong>LoginName</strong></TD>
                            
                             <TD> <CENTER><input type="text" Id="userid" name="userid" maxlength="20" value="" size="16" onKeypress="if (event.keyCode==13)event.returnValue =Submit();" tabindex="1" ></CENTER></TD>
                            
                            </TR>
                            
                            <TR>
                            
                             <TD><strong>Password</strong></TD>
                            
                             <TD><CENTER><input type="Password" Id="password" name="password" size="16" maxlength="20" value="" tabindex="2" onKeypress="if (event.keyCode==13)event.returnValue =Submit();"></CENTER></TD>
                            
                            </TR>
                            
                             <tr>
                            
                             <td width="28%"><strong> Language </strong> </td>
                            
                             <td width="38%">
                            
                             <select name="Lang">
                            
                             <option value="Hindi" selected> Hindi
                            
                             <option value="Bengali"> Bengali
                            
                             <option value="Marathi" > Marathi
                            
                             <option value="Oriya"> Oriya
                            
                             <option value="Tamil"> Tamil
                            
                             <option value="Urdu"> Urdu
                            
                             </select></td>
                            
                             </tr>
                            
                             <tr>
                            
                             <td width="500%"><strong>Domain </strong> </td>
                            
                             <td width="560%">
                            
                             <select name="Domain">
                            
                             <option value="General" selected>General
                            
                             <option value="Tourism">Tourism
                            
                             <option value="Health"> Health
                            
                             </select></td>
                            
                             </tr>
                            
                            </TABLE></CENTER>
                            
                            
                            
                            <CENTER><TABLE BORDER= "0" WIDTH= "60%">
                            
                            <TR><TD></TD></TR>
                            
                            <TR><TD></TD></TR>
                            
                            <TR><TD></TD></TR>
                            
                            
                            
                            <TR>
                            
                             <TD><CENTER><INPUT TYPE="submit" style="background-color:#efeff7" VALUE=" OK " NAME="Submit_Button" OnClick="return Submit();"></CENTER></TD>
                            
                             <TD><CENTER><INPUT TYPE="button" style="background-color: #efeff7" VALUE="CANCEL" NAME="cancel" OnClick="return login();"></CENTER></TD>
                            
                            </TR>
                            
                            </TABLE></CENTER>
                            
                            
                            
                            <CENTER><TABLE BORDER= "0" WIDTH= "63%">
                            
                            <TR><TD></TD></TR>
                            
                            <TR><TD></TD></TR>
                            
                            <TR><TD></TD></TR>
                            
                            <TR><TD></TD></TR>
                            
                            
                            
                            
                            
                            <TR>
                            
                            
                            
                             <TD><CENTER> <A HREF="NewUser.jsp"><strong> NewUser</strong></A></CENTER></TD>
                            
                            
                            
                            
                            
                             <TD><CENTER><!--<A HREF="forgotpassword.html"><strong>Forgot Password</strong></A> --></CENTER></TD>
                            
                            </TR>
                            
                            </TABLE></CENTER>
                            
                            
                            
                            
                            
                            </TD>
                            
                            </TR>
                            
                            </TABLE></CENTER>
                            
                            </form>
                            
                            
                            
                             </center>
                            
                             <p align="right"><font color="#08088A" ><h1 align="right">English to Indian
                            
                             Languages Machine Translation System<h1></font>
                            
                            
                            
                            </BODY>
                            
                            
                            
                            <script language="JavaScript">
                            
                             function login()
                            
                             {
                            
                             var str1 = document.Input_Form1.userid.value
                            
                             var str2= document.Input_Form1.password.value
                            
                             document.Input_Form1.userid.value="";
                            
                             document.Input_Form1.password.value="";
                            
                             }
                            
                             function Submit()
                            
                             {
                            
                            
                            
                             var str1 = document.Input_Form1.userid.value
                            
                             var str2= document.Input_Form1.password.value
                            
                            
                            
                             if(str1 == "")
                            
                             {
                            
                             alert ("Login Name should not be blank")
                            
                             document.Input_Form1.userid.focus()
                            
                             return false
                            
                             }
                            
                             if (str2=="")
                            
                             {
                            
                             alert ("Password should not be blank")
                            
                             document.Input_Form1.password.focus()
                            
                             return false
                            
                             }
                            
                             if (str1!="" && str2!="")
                            
                             {
                            
                             var button = document.getElementById("Submit_Button");
                            
                             button.disabled = "true";
                            
                             document.Input_Form1.action="LoginServlet";
                            
                             document.Input_Form1.submit();
                            
                             return true
                            
                            
                            
                            
                            
                             }
                            
                             }
                            
                            
                            
                            </script>
                            
                            
                            


                            • 11. Re: Web pages are not running on mozilla
                              Peter Johnson Master

                              The number one rule when working with JavaScript is: don't trust Internet Explorer!

                              Here is the offending line:

                              document.Input_Form1.action="LoginServlet";

                              Why this line is incorrect I will leave as a research item for you. As a hint, do not rely on Microsoft documentation, or on any tutorials that are Microsoft centric.

                              • 12. Re: Web pages are not running on mozilla
                                naina sharma Newbie

                                hii
                                Again this is not my code.I am messed with somebdy' else code.I know it shud be like this


                                but in that case i have to change all web pages.Is there any other way out

                                • 13. Re: Web pages are not running on mozilla
                                  Peter Johnson Master

                                  Should be like what? You didn't use the code brackets. (By the way, the solution you specified is not the only one. I actually had something else in mind and it involved changing the line I pointed out - you changed a completely different line)

                                  If you are using someone else's code, you can do one of the following:

                                  1) Tell the originators of the code that their code is unacceptable and they have to fix it. (This of course does not work very well if you are not paying for the code, or if the code is old code and the original developers are not available.)
                                  2) Fix the code yourself. Or hire someone to fix it. Face it, the code will not work with anything other than IE the way it is written.
                                  3) Decree that all of your users must use IE. Hey, its been done before. I can point you to dozens of high-profile web sites that don't work with Firefox. I know because I run into then all the time.