Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7164617
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T14:06:15+00:00 2026-05-28T14:06:15+00:00

I have an HTML form that I need to post to the server with

  • 0

I have an HTML form that I need to post to the server with HTTP POST and input data.

Specifically, I need to send only the parameter values of all the checkboxes that are checked in the form.

I need to do it if the user doesn’t do it himself in 10 minutes.

I am not sure the best way to achieve this but for now I am trying to use jQuery do that but sadly I don’t know anything about JavaScipt or jQuery so I am trying to learn it but failing to achieve something as simple as that.

I need to the run the following after 10 minutes since the page on which the form is loads.

    $("document").ready(function() {            
        var checkedInputElements = $(":input[value=true]");
        var paramNames = [];
        jQuery.each(checkedInputElements, function() {
            var paramName = $(this).attr("name");
            paramNames.push(paramName);
        });
        $("form").submit(function() {
            jQuery.post({
              type: 'POST',
              url: "http://localhost:8080/wickedlynotsmart/auto-submit-form",
              data: paramNames
          });
          return true;
        });
    });  

I am not sure if the code above is correct or not. I am still working on it.
Could someone suggest me a guide which I could use to write a timer so that this code runs after the 10 minutes are over since the page loads?

Thanks.

EDIT:

<%@ include file="/WEB-INF/views/include.jspf" %>

<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>wikedlynotsmart.com</title>
    <link rel="stylesheet" type="text/css" href="<c:url value="/resources/syntaxhighlighter/styles/shCore.css" />" />
    <link rel="stylesheet" type="text/css" href="<c:url value="/resources/syntaxhighlighter/styles/shThemeDefault.css" />" />

    <script type="text/javascript" src="<c:url value="/resources/syntaxhighlighter/scripts/shCore.js" />"></script>
    <script type="text/javascript" src="<c:url value="/resources/syntaxhighlighter/scripts/shBrushJava.js" />"></script>
    <script type="text/javascript">
         SyntaxHighlighter.all()
    </script>
    <script type="text/javascript" >
        //auto-submit-form javascipt code
    </script>   
</head>
<body>
    <jsp:include page="/WEB-INF/views/header.jsp" />
    <div id="thing">
        <form id="form" action="<c:url value="/wikedlynotsmart/auto-submit-form" />" method="post">             
            <ol>
                <c:forEach items="${things}" var="thing">
                    <li>${thing.something}</li>
                    <c:forEach items="${matters}" var="matter">
                        <table>         
                            <tr>
                                <td><input type="checkbox" name="tid${thing.id}-mid${matter.id}" value="true"/></td>
                                <td>${matter.somematter}</td>
                            </tr>       
                        </table>                    
                    </c:forEach><br></br>
                </c:forEach>        
            </ol>   
            <input type="submit" value="submit the thing" class="button"/>
        </form>
    </div>
    <jsp:include page="/WEB-INF/views/footer.jsp" />    
</body>
</html>

This is the page I am working on and trying to get things work for me.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T14:06:16+00:00Added an answer on May 28, 2026 at 2:06 pm

    This will do:

    setInterval(submit_me, 600000); // (1000 * 60 * 10 = 600000)
    
    function submit_me() {
    
        $('#form').submit();
    
    }
    

    Shorter version:

    setTimeout(function() { $('#form').submit(); }, 5000);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a basic HTML form that gets inserted into a server side div
In my HTML code, I have a form tag that contains two input boxes,
I have an HTML form that previously was only used for text attributes for
I have this code in my HTML form: <form action=cart.php method=post> <input type=hidden value=1
I have a REST web service that currently exposes this URL: http://server/data/media where users
I have a html form that posts to a new page on submit. If
I have a HTML form, and I have a Controller Action that accepts the
I have an asp.net form that contains some html, 2 controls a calendar from
This is probably a basic html/css question... I have a simple one-button form that
I have a form on an HTML page with multiple submit buttons that perform

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.