Microsoft KB Archive/329156

= BUG: AutoComplete Does Not Work When You Use Script to Submit a Form =

Article ID: 329156

Article Last Modified on 5/21/2007

-

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 &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;>    function subForm { window.external.AutoCompleteSaveForm(f1); f1.submit; }    User ID : Password : E-mail :     </li> <li>Fill in the correct information, and then click Submit.</li> <li>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.</li></ol>

<div class="status_section">

STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

<div class="moreinformation_section">

Steps to Reproduce the Behavior
<ol> <li> Copy the following code to create an HTML page: <!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;>   <SCRIPT> function subForm { f1.submit; } </HEAD>  <FORM id=f1> User ID : Password :<input type=password name=pw> E-mail :<input type = text VCARD_NAME = &quot;vCard.Email&quot;> <input type=button value=submit onclick=&quot;subForm&quot;> </FORM> </BODY> </HTML> </li> <li>Fill in the correct information, and then click Submit.</li> <li>Revisit the page, and then type in a field that has the same name as a stored field. The AutoComplete attribute does not work; it does not provide an AutoComplete box that contains a list of previously-stored data.</li></ol>

<div class="references_section">