BUG: AutoComplete Does Not Work When You Use Script to Submit a Form (329156)
The information in this article applies to:
- Microsoft Internet Explorer (Programming) 5.5 SP2
- Microsoft Internet Explorer (Programming) 6 (SP1)
This article was previously published under Q329156 SYMPTOMS
The AutoComplete feature does not work when you use script to submit a form. For example, AutoComplete may not function when you view Microsoft ASP.NET Web Forms that use postback to process events on controls other than the Submit button. WORKAROUND
To work around this problem, explicitly save the form in the AutoComplete data store:
- Copy the following code to create an HTML page:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<SCRIPT>
function subForm()
{
window.external.AutoCompleteSaveForm(f1);
f1.submit();
}
</script>
</HEAD>
<BODY>
<FORM id=f1>
User ID : <input type=text name=id></input><br>
Password :<input type=password name=pw></input><br>
E-mail :<input type = text VCARD_NAME = "vCard.Email"> <br>
<input type=button value=submit onclick="subForm()">
</FORM>
</BODY>
</HTML>
- Fill in the correct information, and then click Submit.
- Revisit the page, and then type in a field that has the same name as a stored field. The AutoComplete attribute works; it provides an AutoComplete box that contains a list of previously-stored data.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article. REFERENCES
For more information about how to develop Web-based solutions for Internet Explorer, visit the following Microsoft Web sites:
MSDN Library and Web Workshop:
For more information about AutoCompleteSaveForm, visit the following Microsoft Web sites:
Modification Type: | Major | Last Reviewed: | 4/21/2006 |
---|
Keywords: | kbbug kbpending KB329156 kbAudDeveloper |
---|
|