Javascript code is not working in Mozilla???

Last post 05-16-2008 10:16 PM by dits59. 6 replies.

Sort Posts:

  • Javascript code is not working in Mozilla???

    05-10-2008, 1:58 AM
    • Loading...
    • bhappy
    • Joined on 07-30-2007, 1:10 PM
    • Posts 147

     Hi All,

     

    I am writing one javascript function to make visible true/false of one textbox when onclick of checkbox It is working fine in IE but it is not working in Mozilla.

     Here is my code..

    txt_grd.visibility="hidden"
    Any help plz...........
     
    Thanks. 
      
    Filed under:
  • Re: Javascript code is not working in Mozilla???

    05-10-2008, 2:44 AM
    Answer
    • Loading...
    • kamii47
    • Joined on 05-26-2005, 12:04 PM
    • Karachi, Pakistan
    • Posts 1,856
    Kamran Shahid
    Sr. Software Engineer
    (MCP,MCAD.net,MCSD.net,MCTS,MCPD.net[web])
    Netprosys Inc.
    www.netprosys.com

    Remember to click "Mark as Answer" on the post that helps U
  • Re: Javascript code is not working in Mozilla???

    05-10-2008, 1:17 PM
    • Loading...
    • dits59
    • Joined on 06-25-2006, 1:54 PM
    • Cochin
    • Posts 21

     i believe  visibility=hidden is DHTML CSS property..why u applied like so in JS.it works only in IE and Netscape.

     if ur looking for JS code.then just set the style attributes display:none;

  • Re: Javascript code is not working in Mozilla???

    05-10-2008, 5:47 PM
    • Loading...
    • kamii47
    • Joined on 05-26-2005, 12:04 PM
    • Karachi, Pakistan
    • Posts 1,856

    Yep I fully agreed.

    Exactly that is mentioned in the above provided link

    Kamran Shahid
    Sr. Software Engineer
    (MCP,MCAD.net,MCSD.net,MCTS,MCPD.net[web])
    Netprosys Inc.
    www.netprosys.com

    Remember to click "Mark as Answer" on the post that helps U
  • Re: Javascript code is not working in Mozilla???

    05-11-2008, 11:36 PM
    • Loading...
    • bhappy
    • Joined on 07-30-2007, 1:10 PM
    • Posts 147

    HI,

    Many many Thanks for ur Answer............

  • Re: Javascript code is not working in Mozilla???

    05-16-2008, 5:57 AM

    hi

    i  have written code

    if document.getelementbyid("txtName").value=="")

    alert("First name can not be blank.");

    objFirstName.focus();

    return false;

    }

    It is working fine in IE but in mozila it is not working.Please help me its urgent.

     

                  

     

  • Re: Javascript code is not working in Mozilla???

    05-16-2008, 10:16 PM
    • Loading...
    • dits59
    • Joined on 06-25-2006, 1:54 PM
    • Cochin
    • Posts 21

    do rem that JS is case sensitive

    its ElementById

Page 1 of 1 (7 items)
Microsoft Communities
Page view counter