You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ma...@apache.org on 2007/09/13 11:50:57 UTC
svn commit: r575246 - in
/myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs:
Core.js xhr/RequestQueue.js
Author: matzew
Date: Thu Sep 13 02:50:56 2007
New Revision: 575246
URL: http://svn.apache.org/viewvc?rev=575246&view=rev
Log:
TRINIDAD-704 - IE7 - AutoComplete Does Not Work When You Use Script to Submit a Form
added workaround for IE, to get the browser-build-in autocomplete box to work
Modified:
myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/Core.js
myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/xhr/RequestQueue.js
Modified: myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/Core.js
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/Core.js?rev=575246&r1=575245&r2=575246&view=diff
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/Core.js (original)
+++ myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/Core.js Thu Sep 13 02:50:56 2007
@@ -1735,6 +1735,9 @@
}
}
}
+ // IE BUG, see TRINIDAD-704
+ if(_agent.isIE)
+ window.external.AutoCompleteSaveForm(form);
form.submit();
if (_blockOnEverySubmit)
Modified: myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/xhr/RequestQueue.js
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/xhr/RequestQueue.js?rev=575246&r1=575245&r2=575246&view=diff
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/xhr/RequestQueue.js (original)
+++ myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/xhr/RequestQueue.js Thu Sep 13 02:50:56 2007
@@ -143,6 +143,11 @@
else
{
var content = this._getPostbackContent(actionForm, params);
+
+ // IE BUG, see TRINIDAD-704
+ if(_agent.isIE)
+ window.external.AutoCompleteSaveForm(actionForm);
+
this.sendRequest(context, method, actionForm.action, content, headerParams);
}
}
@@ -467,6 +472,10 @@
if(this._iframeLoadCallback == null)
this._iframeLoadCallback = TrUIUtils.createCallback(this, this._handleIFrameLoad);
+
+ // IE BUG, see TRINIDAD-704
+ if(_agent.isIE)
+ window.external.AutoCompleteSaveForm(htmlForm);
htmlForm.submit();
this._window.setTimeout(this._iframeLoadCallback, 50);