Novell Home

Customize iChain Login Page Error Messages

Novell Cool Solutions: Tip
By Gary Gilbert

Digg This - Slashdot This

Posted: 24 Nov 2004
 

problem:

How to customize iChain Login Page error messages.

solution:

Using Javascript, you can intercept the default iChain error messages and override with your own message.

example:

<!-- Add the following javascript code to the top of the caloglfn.htm page. -->

<script language="JavaScript">

//This will be parsed out by iChain
//and replaced with the login message
	var ichainMessage = "ERROR_STATUS";


	function checkIChainMessage(ichainMessage) {
		if (ichainMessage == "Login failed. Please try again.") {
document.getElementById("promptMsg").innerHTML = "<strong>*Your Error Message*</strong>";
		}
	}
</script>


<!-- Setup the promptMsg and javascript call. -->

<p id="promptMsg">Please Enter your User ID and Password.</p>

<form name="form_data" ACTION="auth-up" METHOD="POST">
<INPUT TYPE="hidden" NAME="proxypath" VALUE="<PROXY_PATH>">
	<INPUT TYPE="hidden" NAME="url" VALUE="<ERROR_INFORMATION>">
	<p><script>checkIChainMessage("ERROR_STATUS")</script></p>
</form>
submit a tip

Here's a chance to share your experiences using iChain. Just send us a tip about using (or installing, deploying, troubleshooting, etc.) iChain, and if it looks like something we can use, we'll send you a Novell t-shirt, post your tip, and make you famous beyond your tamest dreams. Submit your tip here: http://www.novell.com/coolsolutions/forms/submit_a_tip.html


Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com

© 2014 Novell