i tryed that but he doesnt seem to find the aform
document.aform has no properties
showUser("13")realisatie.ajax.j... (line 14)
onchange(change )index.php (line 1)
[Break on this error] for (var i = 0; i < document.aform.type.length; i++) {...
i tryed to get that out by a if statment..
if (document.aform.type.length !== ""){
for (var i = 0; i < document.aform.type; i++) {
if (document.aform.type[i].checked) {
url=url+"&type=" + document.aform.type[i].value;
}
}
}
i dont now i do that so correctly?
but he seems to ask for that "document.aform has no properties"
Code:
<form id="aform" method="get">
<br>
<input name="type" value="3" type="hidden">
<select name="weekid" onchange="showUser(this.value)">
<option value="">Maak uw keuze</option>
<option value="18">weeknr 13 2007 (2007-03-27)</option>
<option value="17">weeknr 12 2007 (2007-03-19)</option>
</select>
</form>
to make it all more implicated (and im sorry for posting this now, i should be doing this much ealier). this is the code from the 1ste form when i open and call the first time the ajax
the code i post in a post above is the form what i call when i calt this one already..
im srry that i didnt tell that earlyer