Hi,
I have a form which posts to an <iframe> on the same page. The idea is that as you type in an author's name in the form the list of possible matches gets shorter and shorter. Eventually I want to make it so once you see your match you can then click on it and it will fill in the box you were typing in with the whole match.
Is this possibe? I did something similar for another app but that time the link and the text were on the same page:
<script type="text/javascript">
function setStartEndDates(_start, _end) {
var f = document.forms['form'];
if (_start != '') f.elements['StartDate'].value = _start;
if (_end!= '') f.elements['EndDate'].value = _end;
}
</script>
and the link was:
<a href="javascript:setStartEndDates('08/08/2006','15/08/2006');">Last 7 days</a>
I have a form which posts to an <iframe> on the same page. The idea is that as you type in an author's name in the form the list of possible matches gets shorter and shorter. Eventually I want to make it so once you see your match you can then click on it and it will fill in the box you were typing in with the whole match.
Is this possibe? I did something similar for another app but that time the link and the text were on the same page:
<script type="text/javascript">
function setStartEndDates(_start, _end) {
var f = document.forms['form'];
if (_start != '') f.elements['StartDate'].value = _start;
if (_end!= '') f.elements['EndDate'].value = _end;
}
</script>
and the link was:
<a href="javascript:setStartEndDates('08/08/2006','15/08/2006');">Last 7 days</a>