Results 1 to 3 of 3
Like Tree1Likes
  • 1 Post By JosAH

Thread: How can I submit data into an iFrame?

  1. #1
    MrAtoBandMe is offline Member
    Join Date
    Mar 2013
    Posts
    2
    Rep Power
    0

    Question How can I submit data into an iFrame?

    I am trying to automatically submit data into my iFrame. In the iFrame will be multiple text boxes and a submit button. I want to enter data into those text boxes and submit it.

    This code is not working for me...

    <html>
    <head>Sim Game</head>
    <body>

    <script type="text/javascript">
    function subForm() {
    document.myform.submit();
    }
    {
    myform.Arrive.value="Hello";
    myform.Leave.value="Goodbye";
    subForm();
    }
    </script>

    <form method="post" name="myform" target="myFrame">

    <iframe height="600" width="600" frameborder="0"

    src="MyWebPage.com" name="myFrame">

    </body>
    </html>

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,361
    Blog Entries
    7
    Rep Power
    20

    Default Re: How can I submit data into an iFrame?

    Do you know the difference between Java and JavaScript? This is a Java forum.

    kind regards,

    Jos
    quad64bit likes this.
    cenosillicaphobia: the fear for an empty beer glass

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,188
    Rep Power
    19

    Default Re: How can I submit data into an iFrame?

    ... as you were told, in different words, in your earlier thread, which was closed as off topic. As this one will also be.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Replies: 2
    Last Post: 02-19-2012, 07:31 AM
  2. submit data using ajax
    By mrunal123 in forum Java Servlet
    Replies: 2
    Last Post: 02-03-2011, 08:26 AM
  3. Submit jsp form data to java
    By keanhoo168 in forum JavaServer Pages (JSP) and JSTL
    Replies: 3
    Last Post: 09-09-2010, 11:43 AM
  4. passing data to two servlets uing one submit button
    By Cashley in forum Java Servlet
    Replies: 2
    Last Post: 04-12-2010, 01:41 PM
  5. How to use one form to submit data to 2 tables on mysql
    By kwesiaryee in forum New To Java
    Replies: 2
    Last Post: 10-10-2008, 01:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •