Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

jquery countdown - autosubmit form upon expiration?

Posted on 2012-04-09
1
Medium Priority
?
1,732 Views
Last Modified: 2012-04-09
I'm using jquery_countdown (http://keith-wood.name/countdown.html) to set a 60-minute timer.  I know that I can run a callback function on time expiration, but is there a way to automatically submit the form?

I tried the following, but it failed to submit (although, there were no errors in the firebug console):
    <div class="countdown"></div>
    <form id="formsamp" action="#">
    <textarea name="bft"></textarea>
    <input type="submit" name="op" value="Submit" />
    </form>
    
    jquery_countdown_add
    (
    	".countdown", 
    	array
    	(
    		"until" => 10, 
    		"onExpiry" => "finished"
    	)
    );
    
    function finished() { 
      $('#formsamp').submit(function(){return true;}); 
    }

Open in new window

0
Comment
Question by:n00b0101
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 20

Accepted Solution

by:
BuggyCoder earned 2000 total points
ID: 37825346
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

722 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question