Results 1 to 4 of 4
  1. #1
    erics44 is offline Member
    Join Date
    Mar 2010
    Posts
    3
    Rep Power
    0

    Default submit html page

    Hi, i have a html page as below with a submit javascript command but the page doesnt submit. Where am i going wrong?

    thanks in advance

    <html>
    <head></head>
    <body>

    <form method=post action="http://<servername>/preprocess1.jsp">

    <textarea rows=25 cols=100 name="XMLData"></textarea><br>


    </form>

    </body>

    </html>

    <script language="JavaScript" type="text/javascript">
    <!-- //

    setTimeout( "document.xmlpost.submit();", 5);
    // -->
    </script>

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    Quote Originally Posted by erics44 View Post
    Hi, i have a html page as below with a submit javascript command but the page doesnt submit. Where am i going wrong?
    well for one, you're asking a JavaScript question in a Java forum. You will likely have better luck getting an answer in a JavaScript forum, and Google should be able to show you plenty. Best of luck!

  3. #3
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    8

    Default

    What is document.xmlpost?

  4. #4
    erics44 is offline Member
    Join Date
    Mar 2010
    Posts
    3
    Rep Power
    0

Similar Threads

  1. Submit values to a parent page
    By carag in forum New To Java
    Replies: 1
    Last Post: 12-11-2009, 01:33 AM
  2. Replies: 10
    Last Post: 08-12-2009, 05:02 PM
  3. redirect to html page
    By simo_mon in forum Java Servlet
    Replies: 3
    Last Post: 02-12-2009, 06:18 PM
  4. Display success message in same page when submit button is clicked
    By am17mu in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 03-29-2008, 11:56 AM
  5. HTML page
    By bbq in forum New To Java
    Replies: 1
    Last Post: 07-05-2007, 04:46 AM

Posting Permissions

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