1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Auto fill and submit using javascript

Discussion in 'HTML & JavaScript' started by wiss1990, Aug 28, 2013.

  1. wiss1990

    wiss1990 Newbie

    Joined:
    May 7, 2012
    Messages:
    21
    Likes Received:
    2
    hello coders,
    can anyone help me to know how to auto fill and submit a form from external link located in an iframe in my website?
    I need this ,plz anyone give me this script!
     
  2. CodeNinja

    CodeNinja Newbie

    Joined:
    Sep 25, 2013
    Messages:
    47
    Likes Received:
    26
    Accessing foreign domain content in an IFRAME is forbidden by the same origin policy.
     
  3. amandatorey

    amandatorey Newbie

    Joined:
    Sep 30, 2013
    Messages:
    6
    Likes Received:
    1
    You'd be better off replicating the form, POSTing the data to external form yourself on your server, and spitting the output back to the user.
     
  4. CyberClaw

    CyberClaw Newbie

    Joined:
    Oct 8, 2013
    Messages:
    3
    Likes Received:
    0
    Occupation:
    Software Engineer
    Location:
    Washington DC
    Home Page:
    Agreed with this. Though, I will say, I believe you can do this as we have on production sites in the past by using a certain character string in your .htaccess file. So, go ahead and PM me and I'll send you the .htaccess file string you'll need to allow for the ability to execute the code from one domain to the other. Then I can help with the code as well.