You need to sign in to do that
Don't have an account?

get the date.now value in apex for a cookie
I need to get the button clicked time of the cookie inside an apex class.How can i achieve this??
How can i get the values inside an apex class including the time on which the button was clicked..
Thanks
<div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="mod" onclick="WriteCookie()">Close</button> </div> <script type="text/javascript"> <!-- function WriteCookie() { var now = system.now(); cookievalue = escape(document.myform.customer.value) + ";" document.cookie="name=" + cookievalue; document.cookie = "expires=" + now.toUTCString() + ";" document.write ("Setting Cookies : " + "name=" + cookievalue ); } </script>
How can i get the values inside an apex class including the time on which the button was clicked..
Thanks
This is a convoluted way of doing things though - if you want to send this information back to the controller why not use a hidden input field and let the platform do the lifting?