How to make one button call two different actions as I have print button that is supposed to call 2 different actions from the same controller to print two different pages?
Thanks in advance.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is no point in calling two actions at once, if you want to print two pages, user must make two requests, and by that he must have two windows open, so this is done by opening a second window to the desired URL and sending the user to the other action in his current window.
In pure JavaScript: