I just need to find an example of how to loop through the collection.
So far, I have this function:
function checkedAll (id, checked) {
var el = document.getElementById(id);
for (var i = 0; i < el.elements.length; i++) {
el.elements[i].checked = checked;
}
}
that is referenced with...
I'm trying to figure out the best way to validate this form. This is a simple email sending script in PHP. Please don't suggest a canned script or something. I have to write this from scratch.
I read contact information from a database which I display out to the browser. Some of the info is...
I am guessing that it will just check the fields that are rendered on the page by the php, so when the user clicks the submit button, it will check for blanks only in those fields. My one problem is that I have a comment field that is not required.
I have several "onChange" commands in the...
I have a php script that has a form for entering requests for materials for the classroom. The user has a choice of entering a single grade, or multiple grades. If the user requests materials for multiple grades, she is asked how many grades, from there, the input fields are set like this:
How...
Thanks for the replies. I had already added the document.form1... and that made the javascript error go away, but it still doesn't work in Netscape.
I change the "1"/"2" to 1/2 and that didn't fix the problem either. I think it's going to have to be some Netscape specific...
This script works in IE but not in Netscape. I get this error message when I click on a radio button:
JavaScript Error: file:/c|/winnt/temp/hs~new.htm, line 52:
form1 is not defined.
JavaScript Error: file:/c|/winnt/temp/hs~new.htm, line 47:
form1 is not defined.
Here's the code:
<html>...
We've closed in on the problem. I added a bunch of alert boxes and what I find is that when the user selects from the <select name="selectfield"> box, in NS, the value (document.formname.selectfield.value) is null, but in IE, it contains the correct value. In both NS and IE, the...
I have a form which contains a button, which when clicked will allow the user to search a table. I is working in IE, but not in Netscape. What is supposed to happen is that the user has a choice between typing in search criteria in text box 1 or selecting a common search item from a drop down...
I have a form in which I would like to be able to control the size of my submit and reset buttons. I have 3 buttons which I would like to all be the same size. This is no problem in IE. I just set my height and width in my style sheet. However, Netscape does not seem to recognize the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.