/    Sign up×
Community /Pin to ProfileBookmark

createAndSubmitForm

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]

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@sstalderOct 23.2008 — It would appear to be a function wrote for that application, it's probably somewhere within your javascript docs.
×

Success!

Help @xcao spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.27,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...