JS isnt called by firefox but is in IE why?

This is the main parts of the page, i dont really understnad why but the button has no function, it doest even appear to attemp to call the JS at all. and i dont understand what may cause this...
<%@ page import="java.util.*;" %>
<%@ page contentType="text/html; charset=ISO-8859-5" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<html>
<head>
    <title>Interactive Experience Database - Search</title>
    <LINK REL="STYLESHEET" TYPE="text/css" HREF="style.css">
</head>
<SCRIPT LANGUAGE="JavaScript" SRC="main.js">
</SCRIPT>
<body>
<FORM name="myForm">
... the page is full of information but this is the button:
<INPUT TYPE=BUTTON VALUE="Generate" onclick="generate()">
</form>
</body>
</html>the js file:
     function generate()
          if(document.getElementById("EmployeeName2").selectedIndex == "0")
               window.alert('You must select a Employee Name');
               return;
          if(document.getElementById("templates").selectedIndex == "0")
               window.alert('You must select a Template');
               return;
               else
               document.myForm.action="cvgeneration.jsp";
                  document.myForm.submit();
     }

<%@ page import="java.util.*;" %>
<%@ page contentType="text/html; charset=ISO-8859-5" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<html>
<head>
    <title>Interactive Experience Database - Search</title>
    <LINK REL="STYLESHEET" TYPE="text/css" HREF="style.css">
    <SCRIPT LANGUAGE="JavaScript" SRC="main.js">
</SCRIPT>
</head>
<%
     String ename = request.getParameter( "EmployeeName");
     session.setAttribute( "ename", ename);
     String sname = request.getParameter( "SkillName" );
        session.setAttribute( "sname", sname );
     String yexp = request.getParameter ("yearsExp");
        if (yexp != null)
             if (yexp =="")
                  session.setAttribute( "yexp", 0);
             else
                     boolean check = true;
               for(int i=0; check && (i<yexp.length()); i++)
                   check = Character.isDigit(yexp.charAt(i));
               if(!check)
                   session.setAttribute( "yexp", 0);
               else
                   double yearsexp = Double.parseDouble(request.getParameter("yearsExp"));
                   session.setAttribute( "yexp", yearsexp);
        else
             session.setAttribute( "yexp", 0);
%>
<body>
<FORM name="myForm">
    <table>
         <tr>
              <td width=10%>
                   <img src="http://localhost:8080/Experience/logo.gif" alt="Company">
              </td>
         </tr>
    </table>
         <h2> Main Page </h2>
         <A href="http://localhost:8080/Experience/help.jsp">Help</A>
         <br>
     <A href="http://localhost:8080/Experience/Updates/update.jsp">Update</A>
         <br> </br>
     <table class="width">
          <tr border-left-width:1px; class="heading">
               <td >
                    <div id="largetableheader">
                         <font>
                              <b>
                                   Reports Generation Tool
                              </b>
                         </font>
                    <div>
                      </td>
                      <td class="borderright">
                      </td>
                      <td width=10%>
                      </td>
                      <td>
                           <div id="largetableheader">
                                <font>
                                     <b>
                                          CV Generation Tool
                                     </b>
                                </font>
                           </div>
                      </td>
                      <td>
                      </td>
                      <td>
                      </td>
          </tr>
          <tr>
               <td>
               </td>
               <td class="borderright">
               </td>
          </tr>
          <tr>
               <td>     
                    Employee Name:
               </td>
               <td class="borderright">
                    <jsp:useBean id="employee" class="com.Database.Employee" scope="page">
                    </jsp:useBean>
                    <select name="EmployeeName">
                         <option> Please Select... </option>
                         <c:forEach var="emp" items="${employee.employees}">                         
                              <c:choose>
                                   <c:when test="${emp.ename == sessionScope.ename }">                                   
                                        <option selected="selected" name="<c:out value="${emp.forename}"/> <c:out value="${emp.surname}"/>">
                                             <c:out value="${emp.forename}"/> <c:out value="${emp.surname}"/>
                                        </option>
                                   </c:when>               
                                   <c:otherwise>
                                        <option name="<c:out value="${emp.forename}"/> <c:out value="${emp.surname}"/>">
                                             <c:out value="${emp.forename}"/> <c:out value="${emp.surname}"/>
                                        </option>                                        
                                   </c:otherwise>     
                              </c:choose>
                         </c:forEach>
                    </select>
               </td>
                      <td>
                      </td>               
               <td>     
                    Employee Name:
               </td>
               <td >
                    <select name="EmployeeName2">
                         <option> Please Select... </option>
                         <c:forEach var="emp" items="${employee.employees}">
                              <option name="<c:out value="${emp.forename}"/> <c:out value="${emp.surname}"/>">
                                   <c:out value="${emp.forename}"/> <c:out value="${emp.surname}"/>
                              </option>
                         </c:forEach>
                    </select>                    
               </td>
                      <td>
                      </td>               
          </tr>
          <tr>
               <td>
                    Skill Name:
               </td>
               <td class="borderright">
                    <jsp:useBean id="skill" class="com.Database.Skill" scope="page">
                    </jsp:useBean>
                    <select name="SkillName">
                         <option> Please Select... </option>
                         <c:forEach var="s" items="${skill.skills}">
                              <c:choose>
                                   <c:when test="${s.skillname == sessionScope.sname }">
                                        <option selected="selected" name="<c:out value="${s.skillname}"/> ">
                                             <c:out value="${s.skillname}"/>
                                        </option>                                   
                                   </c:when>               
                                   <c:otherwise>
                                        <option name="<c:out value="${s.skillname}"/> ">
                                             <c:out value="${s.skillname}"/>
                                        </option>
                                   </c:otherwise>     
                              </c:choose>
                         </c:forEach>
                    </select>
               </td>
                      <td >
                      </td>                           
               <td>
                    Template:
               </td>
               <td>
                    <select name="templates">
                         <option> Please Select... </option>
                         <option>Standard Resume</option>
                         <option>Professional Resume</option>
                         <option>Fully Technical Resume</option>
                         <option>Skills Resume</option>
                    </select>
               </td>
                      <td>
                      </td>               
          </tr>
          <tr>
               <td>
                    Years Experience:
               </td>
               <td class="borderright">   
                    <input type="text" name="yearsExp" value = "<%= session.getAttribute( "yexp" ) %>"/>
               </td>
               <td >
               </td>
               <td>
                    Output To:
               </td>
               <td ALIGN = LEFT>
                    <input type="radio" name="outputtype" value="Browser" checked="checked">Browser<br>
                    <input type="radio" name="outputtype" value="PDF"/>PDF<br>                    
               </td>
          </tr>
          <tr>
               <td>
               </td>
               <td class="borderright">
                    <INPUT TYPE=SUBMIT VALUE="Search">
               </td>
               <td>
               </td>
                      <td>
                      </td>               
               <td>
                    <INPUT TYPE=button VALUE="Generate" onclick="generate()">
               </td>
                      <td>
                      </td>               
          </tr>
     </table>
         <br> </br>   
          <table class="heading">
               <tr>
                    <td>
                         <font>
                              <b> Report: Employee Skill Details: </b>
                         </font>
                    </td>
               <tr>
          </table>
         <br> </br>       
          <jsp:useBean id="empskill" class="com.Database.EmployeeSkill" scope="page">
               <jsp:setProperty name="empskill" property="ename" value="<%= session.getAttribute( "ename" ) %>"/>
               <jsp:setProperty name="empskill" property="skillname" value="<%= session.getAttribute( "sname" ) %>"/>
          <jsp:setProperty name="empskill" property="yearsexperience" value="<%= session.getAttribute( "yexp" ) %>"/>
          </jsp:useBean>
<div id="report">
          <table>
          <tr class="reportheading">
               <td>
                    <b>Employee Name</b>
               </td>
               <td>
                    <b>Skill Name</b>
               </td>
               <td>
                    <b>Skill Level</b>
               </td>
               <td>
                    <b>Years Experience</b>
               </td>
          </tr>
          <c:forEach var="empskill" items="${empskill.report}">
               <tr>
                    <td>
                         <c:out value="${empskill.ename}"/>
                    </td>
                    <td>
                         <c:out value="${empskill.skillname}"/>
                    </td>
                    <td>
                         <c:out value="${empskill.skilllevel}"/>
                    </td>
                    <td>
                         <c:out value="${empskill.yearsexperience}"/>               
                    </td>
               </tr>
          </c:forEach>
     </table>
</div>
</form>
</body>
</html>Message was edited by:
h1400046

Similar Messages

  • Yahoo fantasy football videos crashes every time on firefox but not on IE, why

    <blockquote>Locking duplicate thread.<br>
    Please continue here: [/questions/753709]<br>
    Thanks - c</blockquote><br>
    Yahoo fantasy football videos crashes every time on latest Firefox but not on IE, why?
    What can be done since I like using Firefox so much more than IE

    safemode disables addons, hardware acceleration and some custom settings but not plugins!

  • Button Toggle ADF Javascript(Works in Firefox but not in IE. why ?)

    I have written a code to toggle button in ADF as follows:
    <af:resource type="javascript">
    function enableDisable(actionEvent){
    alert("21");
    document.getElementById('cb1').style.background='red';
    document.getElementById('cb2').style.background='green';
    alert("221");
    function enableDisable1(actionEvent){
    alert("21");
    document.getElementById('cb1').style.background='green';
    document.getElementById('cb2').style.background='red';
    alert("221");
    </af:resource>
    <af:form id="f1">
    <af:commandButton text="commandButton 1" id="cb1"
    inlineStyle="background:'red';">
    <af:clientListener method="enableDisable" type="click"/>
    </af:commandButton>
    <af:commandButton text="commandButton 2" id="cb2" inlineStyle="background:'green';">
    <af:clientListener method="enableDisable1" type="click"/>
    </af:commandButton>
    This code works fine in Firefox, But My requirement is to run it in IE which it doesn't.
    Kindly provide me solution or any pointers to resolve this.

    I do not now what the function of this declaration is, but
    please remove this from the beginning your css and IE7 also shows
    bullets:
    margin: 0;
    padding: 1;
    The padding: 1; is definitely an error cause there should be
    at least something like px behind the 1, so like padding:
    1px;

  • A toolbar called Searchqu got installed in my web browsers.I uninstalled Mozilla Firefox without removing the toolbar and it stopped working saying that can't connect to the server.I uninstalled and installed Firefox but it isn't working.

    A toolbar called Searchqu got installed in my web browsers.I uninstalled Mozilla Firefox without removing the toolbar and it stopped working saying that can’t connect to the server.I uninstalled and installed Firefox but it isn’t working.

    See this thread for potential ways of removing Searchqu from your system: https://support.mozilla.com/en-US/questions/790833

  • Images Viewable in Firefox But Not In Explorer, Safari, Chrome.

    I have a coldfusion page with images. The images are called up dynamically from my Mysql database. The image field with my database has the datatype "char(100)". All that is stored in that database field is the file path to the folder of which the image is stored which is: \photos\RSL\1.jpg.
    On my webpage, the image placeholder looks like this:
    <a href="#Unit_Info.comphoto1#"><img src="#Unit_Info.comphoto1#" alt="" name="1" width="98" height="73" /></a>
    This images display just fine on Firefox, But Not In Explorer, Safari, & Chrome. These latter three just show a broken image. Could there be something wrong with either my coldfuson or Mysql file path where each of the letter three browsers are trying to access?
    I'm running Coldfusion 9 on my local machine, using OS Window 7 Professional.

    When I hard coded the file path it worked. I checked the source code and saw no white space. I even went to each browser's options dialog box to make sure that the show image options were checked. It may be my coding. In my image folder there are categories  of other folders within folders that have images of which Coldfusion calls up whenever the browser needs it. Could that be the problem? Should I have all of my 300 images in one folder?
    - Hannibal Hasan
    On Sep 1, 2011, at 9:30 PM, Dan Bracuk <[email protected]> wrote:
    First thing I'd try would be to hard code the expected value and see if that works.  If it does, I'd look at the html source code from the problematic browsers and see if there is any unexpected white space.
    This message was sent to: College Kid
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/3897548#3897548
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/3897548#3897548. In the Actions box on the right, click the Stop Email Notifications link. For more information about unsubscribing from the Adobe Forums, please visit http://kb2.adobe.com/cps/522/cpsid_52211.html
    --end--

  • HP 8500 printer will not print fast on firefox, but does on Safari. HP support says it is a problem with firefox. Can you help me out?

    Question
    HP 8500 printer will not print fast on firefox, but does on Safari. HP support says it is a problem with firefox. Can you help me out? edit

    Thank you for posting your list of installed Extensions. One of them might be intercepting the menu command. Since you have the Add-on Compatibility Reporter, it's possible that an older add-on that doesn't actually work well with Firefox 5 could be to blame. Could you try disabling the "HP Smart Web Printing" extension and see whether that makes any difference?
    Also, you can simulate a print button on a web site by pasting this to the location bar and pressing Enter. You also can save it as a bookmark for easier access (when scripts are saved as bookmarks, we call them bookmarklets). Hopefully you won't need it for long.
    <br>javascript:void(window.print());

  • My Firefox version is 13.0.1, I use Windows Seven 64-bit, when I click on Firefox, but the program does not run! But Firefox is seen in the list of Windows proc

    My Firefox version is 13.0.1, I use Windows Seven 64-bit, when I click on Firefox, but the program does not run! But Firefox is seen in the list of Windows processes, while Firefox does not run.
    I manually deleted Firefox from the list once I have Windows processing.
    And when I clicked on Firefox, Firefox will open quickly and easily.
    Firefox process in Windows Processes names list called "firefox.exe * 32" is.
    Please try to solve my problem, my problem is how to solve?

    Hi, are you saying that you start Firefox and it stalls -- you can see it in the Task Manager but it never displays -- but if you kill that process and start Firefox again it starts up properly that second time?
    If you look at the statistics available in the Task Manager's processes tab such as bytes read or other bytes, can you see whether Firefox is doing anything at all? ''Note: You might need to add columns if your Processes tab isn't set up to display statistics. You can do that from the View menu.''
    You might already have seen these troubleshooting articles. If not, does anything here help:
    * [[Firefox won't start - find solutions]]
    * [[Firefox hangs or is not responding - How to fix]]

  • Skype Click to Call on Firefox 39 using OSX Yoshimite 10.10.3

    hey guys, i am tyring to install skype click to call on firefox or chrome but its not working for both browsers i am on  OSX Yoshimite 10.10.3Firefox version 39Chrome Version 43.0.2357.132 (64-bit) please help me get this installed.

    Would also add that after doing the above troubleshooting you find any problem with your Click to Call feature just installed, or simply need to install or activate the plugin to another browser (one of the 3 supported for Windows) you are also using, you can run your Click to Call Installer again to choose between the following options provided:
    Change:
    Lets you change the way features are installed (and on what browser are to be installed).
    Repair:
    Repairs errors in the most recent installation by fixing missing and corrupt files, shortcuts and registry entries.
    Remove:
    Removes Click to Call from your computer.
    Cheers,
    RickCP

  • I cant install any search add-ons for firefox becuase I get this message "This search engine isnt supported by firefox and cant be installed".

    Hi
    I have downloaded the latest version of Firefox 3.6.13 from the mozilla website, (I definatly dont have firefox 4 beta). When I try to add any new search add-ons such as Bing, Youtube, IMDB I awlays get the same message "This search engine isnt supported by firefox and cant be installed".
    I have uninstalled and re-installed firefox same problem persists, I even re-installed my OS as I needed to do it anyway and same problem.

    I have found a fix for myself, but i still would like to know what caused the problem.
    If i get the error message, all i have to do is go to the address bar and type in random letters, then when i click install, they install and no more error message.
    anyone able to explain please?

  • I am trying to make a Shell call to Firefox in the C:\Program Files (x86)\Mozilla FireFox\ directory and LabView shell call gives an error.

    I am trying to make a Shell call to Firefox in the C:\Program Files (x86)\Mozilla FireFox\ directory and LabView shell call gives an errors. I can go to the DOS shell and make the call fine, but Labview Shell gives several errors. Anyone know how to get around the directory issue with Program Files (x86) directory name having the space in it and the (x86) that DOS does not seem to like?
    Solved!
    Go to Solution.

    You need to use quotes.

  • How do I Permanently remove a tab that is called "new tab" but is a Blank Page?

    Every time I turn my computer on, I click my Firefox icon in taskbar at bottom, BUT, not only does my homepage tab show up, but lately I have been seeing another tab showing up beside it called "New Tab" but it is Blank. I don't how it all of a sudden showed up, but I can't seem to get rid of it. I right click & "close tab", but I have to do this every time I turn on my computer. Isn't there a way to Permanently Remove this Tab so it doesn't keep showing up on my Tab Bar?

    Unfortunately that was empty too. The Firefox upgrade at that time seemed to wipe an awful lot of stuff. After searching, re-installing etc, whatever was suggested, I gave up. It was a while back. I will remember your suggestions if it ever (hopefully not) happens again though. I did have a very old bookmarks backup, but that would not import, so I did use bits of it manually but it had saved as a massive merged line of sites without my folders, so was a bit too much to fiddle with. The loss of the classical music sites was what I regretted most, no idea what they were called and cannot find some of them now. Ah well, no point in fretting about it now I suppose.

  • I love firefox but hate the constant up dates that lose my add-ons that I use everyday.

    I use my add-ons every day but the up dates keep changing my tool bar. I pay for Roboform and it is an add on that I use to keep all my password's in please tell me how I can keep this on my tool bar along with google. I love FireFox but hate the constant updates
    that loose my add-ons.
    ThankYou for your help
    E.E.Routzahn

    @kaaremi, do you own an E7 so you are speaking from experience, or are you repeating reports/reviews you have read ? The Camera's capabilities you mention, are limited by EDOF not being good with macro photography, but the rest of your issues can either be resolved with 3rd party applications, or don't exist. My E7 displays any company information attached to the contact when I recieve a call and it works fine with time zones, plus of course, if the phone doesn't fulfill your requirements there is always the choice to choose an alternative ?
    If I have helped at all, a click on the White Star is always appreciated :
    you can also help others by marking 'accept as solution' 

  • Why is captcha not reloading in firefox but does in chrome, safari and opera?

    Captcha reload/refresh is not working in firefox but it does in chrome, opera and safari.
    I have already tried adding a query string in the url so that firefox will be forced to reload the page i am calling but still, the image is still the same.
    I have also tried testing my page in firefox on a safe mode. But it still producing the same image.
    Please help...

    Hello,
    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.
    Did this fix your problems? Please report back to us!
    Thank you.

  • Adobe flash player does not work on Firefox, but does on Wind Exp

    I have reinstalled Adobe Flash Player many times and also reinstalled Firefox, but flash player does not work. Every tim I try to play something it tells me to install the latest version of flash player. Flash player works fine on on Windows Explorer

    IE uses a different version of Flash (ActiveX) than other browsers use, you need to install the Plugin version of Flash.
    1.Download the Flash setup file from here: <br />
    [http://fpdownload.adobe.com/get/flashplayer/current/install_flash_player.exe Adobe Flash - Plugin version]. <br />
    Save it to your Desktop.<br />
    2. Close Firefox using File > Exit <br />
    then check the Task Manager > Processes tab to make sure '''firefox.exe''' is closed, <br />
    {XP: Ctrl+Alt+Del = Processes tab}
    3. Then run the Flash setup file from your Desktop.

  • I'm developing a web site using MVC3 & Razor, but my css changes do not show up on FireFox, but do on Chrome & Internet Explorer - How can I get Razor to render correctly on FireFox?

    I don't have a public version as I'm just staring development.
    For an example I have completed the walk-thru at [http://www.asp.net/mvc/tutorials/getting-started-with-ef-using-mvc/updating-related-data-with-the-entity-framework-in-an-asp-net-mvc-application]. Then I tried changing minor items in site.css (such as font size) and the changes did not show up on FireFox, but do show up on Chrome and Internet Explorer.
    Example of change below: I changed the background from #e8eef4 to #ff0000. The table header background shows up in red for chrome & IE, but stay in light blue for FireFox.
    <code>
    table th {
    padding: 6px 5px;
    text-align: right;
    background-color: #ff0000;
    border: solid 1px #e8eef4;
    </code>

    You can also reload web page(s) and bypass the cache.
    *Press and hold Shift and left-click the Reload button.
    *Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    *Press "Cmd + Shift + R" (MAC)

Maybe you are looking for

  • Read only access for a Database!

    Hi All, I need to create a user for my database who can have readonly access to the database and can work as *"Read Only Apps".* Senario:-* I want to give access to development team through TOAD/ SQL* but that user can not delete/update any thing fro

  • Use of WebPass

    Whts the use of WebPass ... as documented it's used for helps communications b/w Identity Server and Webserver. Is there any other use of it? in detail?

  • How can I tell what datacentre I'm using?

    Apologies, I'm a Newbie. How can I tell where my servers are. Country is OK, I don't need to go to the Data Centre. As a Cloud Partner with a "free" account, maybe I don't have a choice, but I'd like to know the servers are in Canada, and not the US.

  • Safari only prints blank pages

    Anyone help with Safari printing issue? It will only print blank pages, on my PC, although all other apps print just fine. I have the latest Safari version.

  • How To reduce UNDO records

    Scenario: Table A has 40 million records and table B has 30 million records. And we have standy Database so there is no option for using Nologging. Using Join and where clause i need to insert around 15 million records to table C. If we insert using