Javascript Problem.
-
Hi every one. I have a problem, I have called a javascript function on the change event of dropdown list. When I use empty alert('') msg that function is called, if alert is not used then it does't fire the function. Thanks in advance.
-
Hi every one. I have a problem, I have called a javascript function on the change event of dropdown list. When I use empty alert('') msg that function is called, if alert is not used then it does't fire the function. Thanks in advance.
Some of your lines inside that method may be throwing error. Run your page in firefox, and look at the error console Or install firebug and debug the error.
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions
-
Some of your lines inside that method may be throwing error. Run your page in firefox, and look at the error console Or install firebug and debug the error.
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions
Here is my code. What error there can be. function loadd() { var firefox=document.getElementById&&!document.all; if (firefox) { var dat = "<table><tr><td>" dat += "State*</td><td> </td><td> </td>" dat += "<td><select id='drpState'></select></td>" dat +="</tr><table>" document.getElementById("dvdrp").innerHTML=null; document.getElementById("dvdrp").innerHTML += dat; } else { var dat = "<table><tr><td>" dat += "State*</td><td> </td><td> </td>" dat += "<td><select id='drpState'></select></td>" dat +="</tr><table>" var parentElement = document.getElementById('dvdrp'); var wrappingDiv = document.createElement('div'); document.getElementById("dvdrp").innerHTML=""; wrappingDiv.innerHTML=dat; wrappingDiv.innerHTML+=" " parentElement.appendChild(wrappingDiv); } }
-
Here is my code. What error there can be. function loadd() { var firefox=document.getElementById&&!document.all; if (firefox) { var dat = "<table><tr><td>" dat += "State*</td><td> </td><td> </td>" dat += "<td><select id='drpState'></select></td>" dat +="</tr><table>" document.getElementById("dvdrp").innerHTML=null; document.getElementById("dvdrp").innerHTML += dat; } else { var dat = "<table><tr><td>" dat += "State*</td><td> </td><td> </td>" dat += "<td><select id='drpState'></select></td>" dat +="</tr><table>" var parentElement = document.getElementById('dvdrp'); var wrappingDiv = document.createElement('div'); document.getElementById("dvdrp").innerHTML=""; wrappingDiv.innerHTML=dat; wrappingDiv.innerHTML+=" " parentElement.appendChild(wrappingDiv); } }
coolmindd wrote:
Here is my code. What error there can be.
Your code is messed up with HTML tags. Try my suggestion to find it out.
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions