Hi,
I have a drop down menu on my page which includes a button to delete the page. The problem I am facing is that "onclick server side script" get executed on page load rather then "on click". Here is my code for that leaf node:
<xe:basicLeafNode label="Read"
image="/act_empty.gif">
<xe:this.onClick><![CDATA[#{javascript:if(context.getUrlParameter("link"))
{
var doc:NotesDocument =database.getDocumentByUNID(context.getUrlParameter("link"));
doc.remove(true);
sessionScope.closeCheck="yes";
}}]]></xe:this.onClick>
<xe:this.rendered><![CDATA[#{javascript:if(context.getUrlParameter("link")!=null || context.getUrlParameter("link")!="")
return true;
else
return false;}]]></xe:this.rendered>
</xe:basicLeafNode>
Thank you in advance for the reply.
-CHINTAN