Connecting Tech Pros Worldwide Forums | Help | Site Map

my javascript is not working in FireFox

kaleeswaran's Avatar
Familiar Sight
 
Join Date: Mar 2007
Location: comibatore
Posts: 132
#1: May 6 '08
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's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#2: May 6 '08

re: my javascript is not working in FireFox


We can't help if you don't show the code that's causing the problem.
kaleeswaran's Avatar
Familiar Sight
 
Join Date: Mar 2007
Location: comibatore
Posts: 132
#3: May 7 '08

re: my javascript is not working in FireFox


Quote:

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
Expand|Select|Wrap|Line Numbers
  1. function disbInstallment()
  2. {
  3.    if(Disbmode.value!="")
  4.             {
  5.                     window.open("<%= request.getContextPath()%>/view/loan/Master/GridDisbursementInstallment.jsp?loanCode="+code.value+"&mode="+Disbmode.value,"mywindow",'780','590','no','center');
  6.             }
  7. }
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
gits's Avatar
Moderator
 
Join Date: May 2007
Location: Munich, Germany
Posts: 4,134
#4: May 7 '08

re: my javascript is not working in FireFox


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

Expand|Select|Wrap|Line Numbers
  1. var val = document.getElementById('Disbmode').value;
that assumes that the node has an id = 'Disbmode' ... and then you may check against the variable val

kind regards
Reply