No Right Click on Custom HR11 Screen

Sort:
You are not authorized to post a reply.
Author
Messages
meierj
New Member
Posts: 2
New Member
    I have added code to our custom HR11 screen that shows the employee photo. I have been asked to make it so that no one can right click and save the picture. I have tried 3 different JavaScripts and none of them work. Has anyone ever done this before within Design Studio?
    John Henley
    Senior Member
    Posts: 3348
    Senior Member
      I don't think this is really possible, except if you disable the right-click altogether (see http://www.paintingsandpr...k/disableimages.html for an example).

      Also, since the image gets cached by the browser, a user could get it from the temporary internet files folder anyway.

      Thanks for using the LawsonGuru.com Forums!

      John
      Thanks for using the LawsonGuru.com forums!
      John
      meierj
      New Member
      Posts: 2
      New Member
        Thanks for the suggestion. When I put this code into the form on the Script screen, I get syntax errors. They say:
        Syntax error at line 1, column 0: Syntax Error.

        Should I be placing this code somewhere other than the Script screen? It really didn't like it when I put it on the Source screen.

        Like I mentioned, I have done this on numerous Web pages, it just seems that Design Studio doesn't like it for some reason.

        Thanks,
        Jen

        John Henley
        Senior Member
        Posts: 3348
        Senior Member
          I see what you mean. My guess is that you would actually have to make this type of a change in the Portal code itself, not as a Design Studio modification. And you'd have to be careful to only disable it on the image when working on HR11, so that you wouldn't disable other right-click functions, such as Drill-Around.

          Not a trivial modification, in my opinion--is it worth it?

          John
          Thanks for using the LawsonGuru.com forums!
          John
          You are not authorized to post a reply.