• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

3rd Party Form Filling

 
Ranch Hand
Posts: 46
Eclipse IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic