dcsimg
javascript working fine in IE not working in Mozilla.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   murali_krishna
Posted On:   Saturday, September 24, 2011 05:47 AM

function onChangeText(obj) { alert(obj); var vcntr = document.getElementById(obj); //working in IE and not wokring in FFox alert(vcntr); if (vcntr== cloud1) { alert("matched"); document.getElementById("Can").className = "active"; document.getElementById("Usa").className = ""; It successfully passing the parameter to funtion.so obj holding the value exactly what i am passing.But in if condition it is not matching in Mozilla.but it is matching successfully in IE. i cant able to understand how to work that line of code in Mozilla. Suggestions appreciable.......Thanks in advance......    More>>

function onChangeText(obj) {
alert(obj);


var vcntr = document.getElementById(obj); //working in IE and not wokring in FFox
alert(vcntr);
if (vcntr== cloud1) {
alert("matched");
document.getElementById("Can").className = "active";
document.getElementById("Usa").className = "";


It successfully passing the parameter to funtion.so obj holding the value exactly what i am passing.But in if condition it is not matching in Mozilla.but it is matching successfully in IE. i cant able to understand how to work that line of code in Mozilla.

Suggestions appreciable.......Thanks in advance......

   <<Less

Re: javascript working fine in IE not working in Mozilla.

Posted By:   murali_krishna  
Posted On:   Monday, September 26, 2011 03:04 AM

Ok.i got the solution........
About | Sitemap | Contact