Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

3rd Party Form Filling

 
Maximus Moothiringus
Ranch Hand
Posts: 46
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,

I don't know if I am putting the name right. But here is what I want to do.

I have a web site. When someone clicks on a particular link I want a new site, that is a site with a form, lets say gmail new mail. Then it will automatically fill some parts of the form say name, alternate email, date of birth, etc. Lets keep it simple with just text boxes. Then the user finishes the rest of the portion like captcha and all. Then he submits.

Is this possible?? Some friends told me check javascript. I am not much into javascript except for some form validation. It would be great if you gave me some insight on this problem

Max
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JavaScript has a same domain policy, it is impossible for code on one domain to interact with another one. You can use the mailto tag. If the user has gmail/yahoo/etc set up to their default application, it will fill it out.

Eric
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64967
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Imagine the nightmarish security implications if such a thing were possible.

Would you want some random site to be able to fill in forms on your banking site?
 
Maximus Moothiringus
Ranch Hand
Posts: 46
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmm.. I understand.. Maybe I just think of myself and what I want.

What I wanted was to just fill in some commonly used forms for a website - I didn't want to submit the form. I just took the mail as an example.

So in short, if i were able to enter data into the form, I would have been able to submit that form also - thus the feature is blocked. Am I right?

Ok. Thank you very much then

Max
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A hacker would love to fill out a few forms on an online bank account to transfer all of your money to his. You will not be able to do it.

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic