SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: onComplete

  1. #1
    SitePoint Enthusiast
    Join Date
    Aug 2005
    Posts
    86
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    onComplete

    Hi All,

    I'm using the countdown code supplied at www.littlewebthings.com and would like to change the onComplete function so that when the countdown finished the page is forwarded to another .html page?

    Code:
    // Set the Countdown
    02	jQuery(document).ready(function() {
    03	    $('#countdown_dashboard').countDown({
    04	        targetOffset: {
    05	            'day':      0,
    06	            'month':    0,
    07	            'year':     0,
    08	            'hour':     0,
    09	            'min':      0,
    10	            'sec':      5
    11	        },
    12	        // onComplete function
    13	        onComplete: function() { $('#complete_info_message').slideDown() }
    14	    });
    15	});
    Many thanks,

    Keith

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,717
    Mentioned
    103 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by quiquiloko View Post
    I'm using the countdown code supplied at www.littlewebthings.com and would like to change the onComplete function so that when the countdown finished the page is forwarded to another .html page?
    What are you wanting help with? How to change the location to another page?
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript


Bookmarks

Posting Permissions

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