By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,698 Members | 1,286 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,698 IT Pros & Developers. It's quick & easy.

calling and submitting a form on an external js page.

tolkienarda
100+
P: 316
hi all

i am not realy a .js person. but i have run into a problem that i think i will need it for. i need to have people hit a button and have that submit a series of hidden form fields. the only problem is that the hidden form elements can't be on the same page. so what i need to do is have an encrypted .js file on my site that contains the form. so the major question i have is can you write an entire form in an encrypted .js file. the reason i am doing this is because having the form elements in plain html means people can edit it with the firefox webdeveloper toolbar and change their inputs.

i know i am terrible at being clear so if you have any problems understanding what i am asking post and i will try to clarify.

thanks
eric
Feb 5 '07 #1
Share this Question
Share on Google+
2 Replies

acoder
Expert Mod 15k+
P: 16,027
If your hidden form fields are that important, Javascript (even encrypted) will not do. Someone determined enough will be able to discover your encryption algorithm.

I suggest you use a HTTP post request using a server side language and pass your hidden form values to the page.
Feb 5 '07 #2

tolkienarda
100+
P: 316
If your hidden form fields are that important, Javascript (even encrypted) will not do. Someone determined enough will be able to discover your encryption algorithm.

I suggest you use a HTTP post request using a server side language and pass your hidden form values to the page.
i will try to do that the only problem i am communicating with a page that is not my own. what this thing does is communicate with paypal, and people can change the cost of their items very tricky. i will try that when i get to work tomarow but i was thinking that encrypted javascript will be a little more secure. i have cracked javascript encryptions on brightshadows and i know it is fairley easy but any super geek can find a way around protection. so if your idea dosen't work with paypal i will repost

thank you for your idea good thought

eric
Feb 7 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.