Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-14-2012, 09:48 PM   PM User | #1
ricmetal
New Coder

 
Join Date: Nov 2008
Posts: 34
Thanks: 1
Thanked 0 Times in 0 Posts
ricmetal is an unknown quantity at this point
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
__________________
Flash/Swish Templates
ricmetal is offline   Reply With Quote
Old 07-14-2012, 10:07 PM   PM User | #2
VoiceOfInsanity
New to the CF scene

 
Join Date: Jul 2012
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
VoiceOfInsanity is an unknown quantity at this point
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.
VoiceOfInsanity is offline   Reply With Quote
Old 07-14-2012, 10:22 PM   PM User | #3
ricmetal
New Coder

 
Join Date: Nov 2008
Posts: 34
Thanks: 1
Thanked 0 Times in 0 Posts
ricmetal is an unknown quantity at this point


one question - how do i write my code on the server?
__________________
Flash/Swish Templates
ricmetal is offline   Reply With Quote
Old 07-15-2012, 06:17 AM   PM User | #4
VoiceOfInsanity
New to the CF scene

 
Join Date: Jul 2012
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
VoiceOfInsanity is an unknown quantity at this point
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.
VoiceOfInsanity is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:14 AM.


Advertisement
Log in to turn off these ads.