You need to sign in to do that
Don't have an account?
Anil Meghnathi
How to use JavaScript in Apex Class
I have an Apex Class.
I wants to alert() of javascript in that class.
Remember i dont have any visualforce page for that class.
Any method in Apex is there using which we can directly execute javascript or HTML???
Its urgent.Help me.
Thanks
Anil
The alert() in javascript has to be displayed to the user - if not a visualforce page where do you intend to display this?
On chatter page.URL:- https://na9.salesforce.com/_ui/core/chatter/ui/ChatterPage .
Please provide more details. On what action by the user should the alert be displayed? Why is there an Apex class involved at all? etc...
Thanks LVS
i wants to show message at the time of insertion of an object.
Any idea will help me
Thanks
Anil
Still not enough info.
Anyway, you could try JavaScript Remoting - you can call a javascript method (like, alert() or your own defined) as a callback