You need to sign in to do that
Don't have an account?
Suresh Raghuram
onclick in command link not working
Hi Community,
Can any body say me where I am making the mistake. onclcik is working upto closing the popup. but the alert is not showing up.
<apex:commandLink onclick="closePopup();alert(ok);" onmouseover="openPopup('{!ag.agreement.Id}');" onmouseout="closePopup();"> {!ag.agreement.Name}</apex:commandLink>
thanks,
Suree
Can any body say me where I am making the mistake. onclcik is working upto closing the popup. but the alert is not showing up.
<apex:commandLink onclick="closePopup();alert(ok);" onmouseover="openPopup('{!ag.agreement.Id}');" onmouseout="closePopup();"> {!ag.agreement.Name}</apex:commandLink>
thanks,
Suree
You have to give alert message in single quote. like alert('ok');
see below:
<apex:commandLink onclick="closePopup();alert('ok');" onmouseover="openPopup('{!ag.agreement.Id}');" onmouseout="closePopup();"> {!ag.agreement.Name}</apex:commandLink>
Thank You,
Hitesh Patel
SFDC Certified Developer & Administrator & Advanced Administrator & Sales cloud consultant
Email :- hiteshpatel.aspl@gmail.com
My Blog:- http://mrjavascript.blogspot.in/