taking a screenshot of user's current page in ruby on rails -


this fo debugging purpose, please take account following:

  1. the user logs in his/her account manually fetching url not work - screenshot must happen when user access admin pages.

  2. would love receive guidelines specific ruby on rails , heroku (i guess heroku not issue dump screenshot s3).

so ideally mentioned in #1, when user access page, app takes screenshot of entire page , dumps in tmp folder.

can point me how handle that?

in order screenshot of user seeing, have have code on user's machine uses underlying operating system api take screenshot. api calls involved different windows, mac os x , linux.

ruby on rails executes on remote server , generates html , javascript etc. sent user's web browser. html rendered browser , javascript executes within browser's sandbox, has no direct access operating system api. important point there no direct interaction between server-side code , os running on user's computer. if possible massive security hole.

therefore it's not possible want programmatically unless can first install client-side program on user's computer can talk server-side code. cannot done using ruby on rails alone because it's server-side web framework.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -