my javascript is not working in FireFox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kaleeswaran
    New Member
    • Mar 2007
    • 132

    #1

    my javascript is not working in FireFox

    hi!
    i wrote java script function while i was using ie6 ..after that i ran the same program in FireFox.but my javascript function is not working although pop window itself is not working,,,
    how do i fix this?...
    Thank you,
    kaleeswaran
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    We can't help if you don't show the code that's causing the problem.

    Comment

    • kaleeswaran
      New Member
      • Mar 2007
      • 132

      #3
      Originally posted by acoder
      We can't help if you don't show the code that's causing the problem.
      thank you for your reply,
      i am working on Banking domain,..my whole modules JS files are working properly in IE6 but not in Mozilla..
      for example
      [CODE=javascript]function disbInstallment ()
      {
      if(Disbmode.val ue!="")
      {
      window.open("<% = request.getCont extPath()%>/view/loan/Master/GridDisbursemen tInstallment.js p?loanCode="+co de.value+"&mode ="+Disbmode.val ue,"mywindow",' 780','590','no' ,'center');
      }
      }[/CODE]
      when i click the button one pop window will open ,it's perfectly working in IE6..
      In Mozilla pop Window itself not opening....

      Thank You,
      kaleeswaran
      Last edited by gits; May 7 '08, 06:22 AM. Reason: added code tags

      Comment

      • gits
        Recognized Expert Moderator Expert
        • May 2007
        • 5390

        #4
        show how you refer o Disbmode ... you should use something like this:

        [CODE=javascript]var val = document.getEle mentById('Disbm ode').value;[/CODE]
        that assumes that the node has an id = 'Disbmode' ... and then you may check against the variable val

        kind regards

        Comment

        Working...