Hi,
I'm trying to use Javascript by using registerClientEventHandler. However I get javascript error 'Object Expected' at line where I placed 'registerClientEventHandler ()'. I'm beginner in WDK coding. Could you kindly help me out.
Below is the process I followed:
Component Class:
public void onClickLink(Link theLink, ArgumentList arg) {
System.out.println("**Inside onClickLink*** ");
// display busy symbol during this process
ArgumentList args1 = new ArgumentList();
String message = "Parser in Progress,Please wait";
args1.add("displayMessage", message);
setClientEvent("busyWindow", args1);
Component JSP:
<script type="text/javascript" language="javascript">
registerClientEventHandler(null, "busyWindow", busyWindow); Error at this line
function busyWindow(displayMessage)
{
alert("Status here --> " + displayMessage);
}
// rest of code..
<dmf:link label="Click to Proceed"
onclick="onClickLink">
My goal was to display progress bar when compoenent is loaded. I could not succeed with implemenation like in other content transfer operations(like check in ,checkout) hence chose this way to modify javascript accordingly so that I can use div tags to display progress bar. Could you please help me out.
Thanks in Advance !