File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes 3rd Party Form Filling Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "3rd Party Form Filling" Watch "3rd Party Form Filling" New topic
Author

3rd Party Form Filling

Maximus Moothiringus
Ranch Hand

Joined: Jun 07, 2008
Posts: 46

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


-- Maximus Moothiringus
Preparing for SCJA!!
Finally figured out that giving <br/> splits the profile biography but not the signature
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
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

Joined: Jan 10, 2002
Posts: 61301
    
  66

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?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Maximus Moothiringus
Ranch Hand

Joined: Jun 07, 2008
Posts: 46

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

Joined: Nov 08, 2001
Posts: 15376
    
    6
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
 
GeeCON Prague 2014
 
subject: 3rd Party Form Filling