Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Dec 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    how can I prevent 'hidden form fields' from 'view source' and 'file>save'

    I am new to JavaScripting. I want to prevent some data like hidden form fields from getting saved on visitors computer when he uses 'File>Save' option or he tries to 'view source'. How to do this?

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    You can't. Simple as that. Anything you put on the web publically can be seen. Don't waste your time.

    Best thing I can tell you is don't use hidden inputs. Generate the data you need on the server side rather than clientside.
    ||||If you are getting paid to do a job, don't ask for help on it!||||


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •