I found some code in our application.
I don’t quite understand what is the createAndSubmitForm part,
is it a javascript function, I searched and cannot find it.
where can I find its syntax?
Thanks
Codes are as below
Thanks
[COLOR=”Blue”]
_linkTarget = “ssoEasyIEPwebWin”;
function prefetchCallback() {
var formFields = new Array();
formFields[ “JavaScriptVersion” ] = “4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.2; .NET CLR 3.0.04506.648; MS-RTC LM 8)”;
formFields[ “ScreenWidth” ] = “1280”;
formFields[ “ScreenHeight” ] = “1024”;
formFields[ “Name” ] = “{ENCRYPT_BEGIN}{APPLICATION_USER_NAME}{ENCRYPT_END}”;
formFields[ “Password” ] = “{ENCRYPT_BEGIN}{APPLICATION_PASSWORD}{ENCRYPT_END}”;
formFields[ “Login” ] = “Login”;
createAndSubmitForm( “{APPLICATION_URI}”, formFields, _linkTarget );
if ( _linkTarget != “_self” ) {
finalize();
}
}
var ssoWin = window.open( “{APPLICATION_PARAMETERS}”, _linkTarget );
setTimeout( prefetchCallback, 500 );[/COLOR]