Lookup value in keyword options

This code simulates the fetching from a field in a field "keyword."

In the field it has "field_Entry," in the event "onKeyUp" places this code "SearchKeyword()." With this, when the user types the information in the field, it will automatically go to search the input of the data in the field "keyword."

This works only on Internet Explorer 4.0 or higher.

Code: function SearchKeyword(){
	var doc = document.forms[0];
	for(n=0; n <= doc.field_Entry.length - 1; n++){
		if(doc.field_Entry.value == doc.field_Keyword.options[n].text.substring(0,doc.field_Entry.value.length)){
			doc.field_Keyword.options[n].selected = true;
			return true;
		}
	}
}

This was first published in January 2001

Dig deeper on Domino Resources - Part 7

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchWinIT

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchEnterpriseLinux

SearchVirtualDataCentre.co.UK

Close