Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Coldfusion 8: Onblur doesn’t fire on autosuggest cfinput

Status
Not open for further replies.

Juliawong99

IS-IT--Management
May 16, 2008
1
0
0
US
Hello,
I have a problem using the autosuggest cfinput. Here is the sample of my code.

<cfinput name="item_number" maxlength="20" type="text" maxResultsDisplayed="20" autosuggest="cfc:Inventory.model.lookupRoom.lookup({cfautosuggestvalue})" value=#getInventory.Item_Number# showAutosuggestLoadingIcon="no" onBlur="javascript:loadData();" >

---------------------------------------
function loadData(){
document.frmInventoryData.isLoadData.value = '1';
target='_self';
document.frmInventoryData.submit();
}

The event Onblur does not fire after the autosuggest has been selected. When the form is submitted, “item_number” has the value that the user entered, but not the value that the user selected from the autosuggest. I have tried all the available events of cfinput like onChange, onMouseOut.., but it still doesn’t work. Please help. Thanks for your time.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top