The below script is working Internet browser but not
working in mozilla plz find that good way...
function doSubmit(op){
var rowcount=document.getElementsByName
("parameterTypeId").length;
var parameterGrade;
var performance;
var goal;
if(op == "save"){
for (var i=0; i < rowcount; i++) {
var param=eval("document.forms
[0].parameterGrade"+i);
if(param.value != "select"){
return true;
}
}
alert("Please rate atleast one
attribute");
return false;
}//if ends here
No Answer is Posted For this Question
Be the First to Post Answer
What do mean by NULL in Javascript?
How to write a comment in javascript?
How do you write an if statement in javascript?
A milk carton can hold 3.78 litres of milk. Each morning, a dairy farm ships cartons of milk to a local grocery store. The cost of producing one litre of milk is $0.38, and the profit of each carton of milk is $0.27. Write a java program that prompts the user to enter the total amount of milk produced in the morning. Then display the number of milk cartons needed to hold milk, the cost of producing milk, and the profit for producing milk.
i want to display time using hidden variable in a page,but when i click button that page that hidden variable loosing its value.i m sending the code also. <script type="text/javascript" language="javascript"> var tick=0; window.onload = function() { //debugger if(document.getElementById("hdnTicker").value != "") tick = parseInt(document.getElementById("hdnTicker").value); setInterval("Timer()",1000); } function Timer() { //debugger document.getElementById("hdnTicker").value = tick++; //alert(document.getElementById("hdnTicker").value); document.getElementById("lblTimeSpent").innerHTML = "0." + tick; if(tick == 30) { //message or redirect to result window alert('time is out'); //clearTimeout(); } } </script> <form id="form1" runat="server"> <div> <table> <tr> <td> <asp:Label ID="lblTimeSpent" runat="server" Visible="true" ForeColor="Blue" ></asp:Label> </td> <td> <%-- <asp:textbox EnableViewState="true" id="hdnTicker" runat="Server" style="visibility:hidden"></asp:textbox>--%> </td> </tr> <tr> <td> <asp:Button ID="btn" runat="server" Text="hi" OnClick="btn_Click" Height="30px" Width="60px" /> </td> </tr> </table> <%--<asp:HiddenField ID="txt" runat="server" Visible="true" />--%> </div> </form> <input type="hidden" id="hdnTicker" name="hdnTicker" enableviewstate="true" runat="server" />
What is a named function in JavaScript? How to define a named function?
Write a Program of Simple Calculator in JavaScript using HTML.
Is client side front end?
What is this keyword?
9 Answers Cognizant, Infosys, Satyam,
What are the problems associated with using javascript, and are there javascript techniques that you discourage?
What output will this program produce System.out.println(x+"+"+y+"="+(x+));
How to set the cursor to wait in JavaScript?