tags:

views:

18

answers:

2

here is my countdown

$('span.countdown').each(function() {
        var endtime = $(this).html();
        $(this).countdown({
            until:  endtime,
            format: 'dhmS',
            layout: '{d<}{dn} days {d>}{h<}{hn} hours {h>}{m<}{mn} mins {m>}{sn} secs',
            expiryUrl: self.location.href
        });
    });
}

i would like to redirect to index.php when countdown hits zero :)

A: 

Try changing it to expiryUrl: "something".

SLaks
i have tried both with no results,i am atempting to redirect to my reset db php file at the end of that it redirects to index.php
dave
here is my current code..
dave
$('span.countdown').each(function() { var endtime = $(this).html(); $(this).countdown({ until: endtime, format: 'dhmS', layout: '{d<}{dn} days {d>}{h<}{hn} hours {h>}{m<}{mn} mins {m>}{sn} secs', expiryUrl: "http://www.elitepimps.info/something.php" }); });}
dave
yes that did work sorry i didnt reset timer when testing
dave
thanks everyone
dave
You should accept this answer by clicking the hollow check.
SLaks
+1  A: 
            expiryUrl: self.location.href
    to

            expiryUrl: window.location.href

or 

            expiryUrl: "absolute url" //ie http://domain/index.php
JapanPro