Revision 6668
Added by Jing Tao about 13 years ago
lib/style/skins/sanparks/sanparksLogin.js | ||
---|---|---|
35 | 35 |
var organization = formObj.organization.value; |
36 | 36 |
//alert("organization: " + organization); |
37 | 37 |
formObj.username.value = createLdapString(shortUserName, organization); |
38 |
var formParas = Form.serialize(formObj); |
|
38 | 39 |
//alert("ending userName: " + formObj.username.value); |
39 | 40 |
var loggingInContent = "<table><tr><td width='600px' align='center'><p>logging in</p></td></tr></table>" |
40 | 41 |
document.getElementById(divId).innerHTML = loggingInContent; |
41 | 42 |
|
42 |
submitFormObjIntoDiv(servletUrl, formObj, divId);
|
|
43 |
submitFormParasIntoDiv(servletUrl, formParas, divId);
|
|
43 | 44 |
|
44 | 45 |
} |
45 | 46 |
|
... | ... | |
51 | 52 |
var organization = formObj.organization.value; |
52 | 53 |
//alert("organization: " + organization); |
53 | 54 |
formObj.username.value = createLdapString(shortUserName, organization); |
55 |
var formParas = Form.serialize(formObj); |
|
54 | 56 |
//alert("ending userName: " + formObj.username.value); |
55 | 57 |
var loggingInContent = "<table><tr><td width='600px' align='center'><p>logging in</p></td></tr></table>" |
56 | 58 |
document.getElementById(divId).innerHTML = loggingInContent; |
57 | 59 |
|
58 |
submitFormObjIntoDivAndReload(servletUrl, formObj, divId);
|
|
60 |
submitFormParasIntoDivAndReload(servletUrl, formParas, divId);
|
|
59 | 61 |
|
60 | 62 |
} |
61 | 63 |
|
62 | 64 |
function submitLogoutFormIntoDiv(servletUrl, formObj, divId) { |
65 |
var formParas = Form.serialize(formObj); |
|
63 | 66 |
var loggingOutContent = "<table><tr><td width='600px' align='center'><p>logging out</p></td></tr></table>" |
64 | 67 |
document.getElementById(divId).innerHTML = loggingOutContent; |
65 | 68 |
|
66 |
submitFormObjIntoDiv(servletUrl, formObj, divId);
|
|
69 |
submitFormParasIntoDiv(servletUrl, formParas, divId);
|
|
67 | 70 |
|
68 | 71 |
} |
69 | 72 |
|
Also available in: Unified diff
Using the method sending form parameters rather than form object.
The reason is IE will invalidate the form object after putting a login message on the div which contains the form.