Displaying 2 results from an estimated 2 matches for "yearr".
Did you mean:
year
2006 Feb 09
5
Ajax.Updater not populating element - please help
...var m = model.options[i].value;
if ( modelre.test(m) ) {
alert(m);
//model.selectedIndex = i;
model.options[i].selected = true;
}
}
}
function setYear(the_year) {
var year = $(''year'');
var yearre = new RegExp(the_year);
// Set the year
for (var i=year.options.length-1; i>=0; i--) {
var m = year.options[i].value;
if ( yearre.test(m) ) {
year.selectedIndex = i;
}
}
}
</script>
<form id="myform" action=&q...
2006 Feb 07
1
Help needed with conflicting EventObserver
...var yearAjax = new Ajax.Updater({ success: ''year''},
''/util/year_select_response'', { parameters: ''id=''+m,
onComplete:setYear } );
}
}
}
function setYear() {
var year = document.getElementById("year");
var yearre = /1964/;
// Set the year
for (var i=year.options.length-1; i>=0; i--) {
var m = year.options[i].value;
if ( yearre.test(m) ) {
year.selectedIndex = i;
}
}
}
</script>
<!--
<script type="text/javascript">...