how to work javascript in mozilla firefoxe

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shyamg
    New Member
    • Jun 2007
    • 28

    how to work javascript in mozilla firefoxe

    hi

    i am before using IE 7 now iam using mozilla firefoxe in this javascript validation is not working how to change the javascript function .

    shyam
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5388

    #2
    please post some code that is not working in FF, Moz ... then we may be able to help you ...

    kind regards ...

    Comment

    • shyamg
      New Member
      • Jun 2007
      • 28

      #3
      how to validate javascript in mozilla firefoxe

      hi


      how to validate java script functions in mozill firefox.

      Comment

      • r035198x
        MVP
        • Sep 2006
        • 13225

        #4
        Originally posted by shyamg
        hi


        how to validate java script functions in mozill firefox.
        Java != Javascript
        Moved to Javascript forum.

        Comment

        • gits
          Recognized Expert Moderator Expert
          • May 2007
          • 5388

          #5
          hi ...

          to see the errors open the javascript-console from firefox's extras menu ... there you will see the errors that occur during script-execution.

          kind regards ...

          Comment

          • shyamg
            New Member
            • Jun 2007
            • 28

            #6
            hi,



            1) This is working on IE 7 now i am using mozilla firefox4.42 inthis its not working javascript,

            2)where can i find extras in mozilla,......
            (to find my javascript errors) ?


            Thanks ,

            <html:html>
            <html:base/>
            <head>
            <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
            <title></title>
            <link rel="stylesheet " href="../../css/common.css" type="text/css">
            <link rel="stylesheet " href="../../css/tabs.css" type="text/css">
            <script language="javas cript" src="../../js/tabs.js"></script>
            <script language="javas cript" src="../../js/module.js"></script>
            <!-- [END] DO NOT REMOVE -->

            <!-- [START] PUT CUSTOM JAVASCRIPT HERE -->
            <script language="javas cript">




            function BLfun()
            {
            var dscptVal = document.all.ds cpt.value;
            if(dscptVal=='0 01'||'002'||'00 3')
            {
            document.all.ds cpt.disabled=tr ue;
            }else{
            document.all.ds cpt.disabled=fa lse;
            }
            document.all.ds cpt.value=dscpt Val


            var dealeridVal = document.all.de alerid.value;
            if(dealeridVal= ='dealerid')
            {
            document.all.de alerid.disabled =true;
            }else{
            document.all.de alerid.disabled =false;
            }
            document.all.de alerid.value=de aleridVal
            }




            var dealerid = new keybEdit('abcde fghijklmnopqurs tuvwxyz01234567 890 ','Alpha-numeric input only.');
            var dealinit = new keybEdit('abcde fghijklmnopqurs tuvwxyz01234567 890 ','Alpha-numeric input only.');
            var dealername = new keybEdit('abcde fghijklmnopqurs tuvwxyz ','Alphabets input only.');
            var rank = new keybEdit('01234 567890','Numeri c input only.');

            void function setEvents() {
            document.getEle mentById(dealer id)onkeypress = new Function('editK eyBoard(this,de alerid)');
            document.all.de alinit.onkeypre ss = new Function('editK eyBoard(this,de alinit)');
            document.all.de alername.onkeyp ress = new Function('editK eyBoard(this,de alername)');
            document.all.ra nk.onkeypress = new Function('editK eyBoard(this,ra nk)');

            }

            </script>

            <!-- [END] PUT CUSTOM JAVASCRIPT HERE -->

            </head>

            <body onLoad="JavaScr ipt:setEvents() ">
            <html:form action="/X33" method="post">


            <%
            randGen rg=new randGen();
            %>

            <!-- [START] SAFE TO EDIT -->
            <input type="hidden" name="ejfno" value="<%=rg.my Method ()%>"/>
            <table width="100%" border="0" cellpadding="2" cellspacing="2" >
            <tr>
            <td class="tablehea der" colspan="3">Dea ler Creation</td>
            </tr>
            <tr>
            <td class="redtext" colspan="3"><ht ml:errors/></td>
            </tr>
            <tr>
            <td width="24%" class="labeltex t">Transacti on Code</td>
            <td width="2%" class="blanktex t">:</td>
            <td width="74%" class="blanktex t">
            <html:text property="trans actioncode" styleClass="tex tfield" size="3" maxlength="3" value="X33" readonly="true"/>
            <html:select property="dscpt " styleClass="dro pdown" value="<%=(Stri ng)session.getA ttribute("dscpt _val")%>">
            <html:option value="">Please Select</html:option>
            <html:option value="001">001 - Create</html:option>
            <html:option value="002">002 - Update</html:option>
            <html:option value="003">003 - Delete</html:option>
            </html:select>

            </td>
            </tr>
            <tr>
            <td width="24%" class="labeltex t">Dealer's ID</td>
            <td width="2%" class="blanktex t">:</td>
            <td width="74%" class="blanktex t">
            <html:text property="deale rid" styleClass="tex tfield" size="20" maxlength="20" value="${X33.de alerid}" onblur="getRimD ata(document.fo rms[0], '/ILICTreasury/banker-web/X33.do', this, 'IX33001')"/>
            </td>
            </tr>
            <tr>
            <td width="24%" class="labeltex t">Dealer's Initials</td>
            <td width="2%" class="blanktex t">:</td>
            <td width="74%" class="blanktex t">
            <html:text property="deali nit" style ="background-color: #FFFFCC" styleClass="tex tfield" size="20" maxlength="30" value="${X33.de alinit}" readonly="true"/>
            </td>
            </tr>
            <tr>
            <td width="24%" class="labeltex t">Dealer's Name</td>
            <td width="2%" class="blanktex t">:</td>
            <td width="74%" class="blanktex t">
            <html:text property="deale rname" style ="background-color: #FFFFCC" styleClass="tex tfield" size="40" maxlength="30" value="${X33.de alername}" readonly="true"/>

            </td>
            </tr>
            <tr>
            <td width="24%" class="labeltex t">Rank</td>
            <td width="2%" class="blanktex t">:</td>
            <td width="74%" class="blanktex t">
            <html:select property="rank" styleClass="dro pdown" value="${X33.ra nk}">
            <html:option value="">Please Select</html:option>
            <html:option value="01">01-SENIOR DEALER</html:option>
            <html:option value="02">02-JUNIOR DEALER</html:option>
            </html:select>

            </td>
            </tr>

            <tr>
            <td colspan="3">&nb sp;</td>
            </tr>
            <tr align="center">
            <td colspan="3">
            <html:button property="submi tbutton" styleClass="but ton" value="SUBMIT" onclick="doSubm it(document.for ms[0], '/ILICTreasury/banker-web/X33.do','UX33') "/>
            <html:reset property="reset " styleClass="but ton" value="CLEAR"></html:reset>
            </td>
            </tr>
            </table>
            </html:form>
            </body>
            </html:html>

            Comment

            • gits
              Recognized Expert Moderator Expert
              • May 2007
              • 5388

              #7
              hi ...

              after a first look : document.all doesn't work in FF ... you may use document.getEle mentById(id_as_ string) instead ...

              kind regards ...

              Comment

              • gits
                Recognized Expert Moderator Expert
                • May 2007
                • 5388

                #8
                sorry ... i meant the tools menu - FF calls it Error Console, in moz you find web-development -> JavaScript Console ...

                kind regards

                Comment

                • acoder
                  Recognized Expert MVP
                  • Nov 2006
                  • 16032

                  #9
                  Threads merged.

                  Comment

                  Working...