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 4 of 4
  1. #1
    New Coder
    Join Date
    Nov 2008
    Posts
    54
    Thanks
    2
    Thanked 0 Times in 0 Posts

    hacking functions ?

    hi all. i'm currently building an application that utilizes JavaScript. I am no very fluent in this programming language but i do read when i know what i am looking for. now, i am not sure where to look, without reading an entire chapter on functions and probably not find my answer so i'd like to ask; can a user, that views the source code of a website trigger a javascript function, if the function is only called from a button click and pass, for example, diferent arguments, without clicking said calling button?

    regards

  • #2
    New to the CF scene
    Join Date
    Jul 2012
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Of course. You just have to bring up the JS console (usually with F12) and call the function. You can write the code such that the function is not accessible from the console but the user can still download the website and modify the code. So in short - only code that's on the server is safe. Client code can always be messed with by the user.

  • #3
    New Coder
    Join Date
    Nov 2008
    Posts
    54
    Thanks
    2
    Thanked 0 Times in 0 Posts


    one question - how do i write my code on the server?

  • #4
    New to the CF scene
    Join Date
    Jul 2012
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    PHP is the most popular language for that purpose. But since I don't know what exactly you are planing to do I can't tell you if you really need to put your code on the server.


  •  

    Posting Permissions

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