Click here to Skip to main content
15,896,063 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: How to create automatic page Pin
led mike2-Jun-08 4:43
led mike2-Jun-08 4:43 
AnswerRe: How to create automatic page Pin
Ashfield2-Jun-08 5:08
Ashfield2-Jun-08 5:08 
GeneralRe: How to create automatic page Pin
Poonam Gandash6-Jun-08 0:29
Poonam Gandash6-Jun-08 0:29 
QuestionAuto Complete Extender Pin
wantToLearn1-Jun-08 19:24
wantToLearn1-Jun-08 19:24 
Questionhow to retrieve the number of selected items in a listbox using vbscript / ASP Pin
padmajyothi1-Jun-08 7:05
padmajyothi1-Jun-08 7:05 
QuestionHow to download top 5 emails in ASP.net? Pin
hifiger20041-Jun-08 6:42
hifiger20041-Jun-08 6:42 
AnswerRe: How to download top 5 emails in ASP.net? Pin
Ashfield1-Jun-08 23:12
Ashfield1-Jun-08 23:12 
Questionobj has no properties Pin
Mohammad A Gdeisat31-May-08 12:32
Mohammad A Gdeisat31-May-08 12:32 
Hi, I wrote this script which is basically a timer, but I get the error: txtTime has no properties in the line:

var colonIndex = txtTime.indexOf(':',0);

The code listing is here:

 function HandleTimer()<br />
    {<br />
        ////write date and time<br />
        var CurTime;<br />
        var PM = 0;<br />
        var currentTime = new Date()<br />
        var hours = currentTime.getHours()<br />
        var minutes = currentTime.getMinutes()<br />
        if (minutes < 10)<br />
            minutes = "0" + minutes<br />
        <br />
        if(hours > 11)<br />
        {<br />
            PM = 1;                 <br />
        }<br />
        <br />
        if(hours > 12)<br />
        {                   <br />
            hours = hours - 12; <br />
        }<br />
        CurTime = hours + ":" + minutes + " "<br />
        if( PM == 1 )<br />
            CurTime += "PM"<br />
        else<br />
            CurTime += "AM"<br />
       <br />
        var lblCurrentTime = document.getElementById('lblCurrentTime');<br />
        var ctl00_ContentPlaceHolder1_RemainingTime = document.getElementById('ctl00_ContentPlaceHolder1_RemainingTime');<br />
        <br />
        lblCurrentTime.innerText = CurTime;<br />
<br />
        ////////////////////////////////////////<br />
        var seconds = 0;<br />
        var mins = 0;<br />
        var txtTime = ctl00_ContentPlaceHolder1_RemainingTime.innerText;<br />
        if(txtTime == 'Time Up!' || txtTime == '')<br />
            return;<br />
        var colonIndex = txtTime.indexOf(':',0);        <br />
        var strMin = txtTime.substr(0, colonIndex);<br />
        var strSec = txtTime.substr(colonIndex + 1, 2);<br />
        if(strSec.charAt(0) == '0')<br />
             seconds = parseInt(strSec.charAt(1));<br />
        else<br />
             seconds = parseInt(strSec);<br />
        mins = parseInt(strMin);<br />
        <br />
                <br />
        if(seconds == 0 && mins == 0)<br />
        {<br />
            __doPostBack('ctl00_ContentPlaceHolder1_btnNext','')<br />
        }<br />
        else if(strSec == "00" && mins > 0)<br />
        {<br />
            seconds = 59;<br />
            mins--;<br />
        }<br />
        else<br />
        {<br />
            seconds--;<br />
        }<br />
        if(seconds < 10)<br />
            ctl00_ContentPlaceHolder1_RemainingTime.innerText = mins +':' + '0' + seconds;<br />
        else<br />
            ctl00_ContentPlaceHolder1_RemainingTime.innerText = mins +':' + seconds;<br />
            <br />
        setTimeout("HandleTimer();",1000);<br />
            <br />
    }


Any ideas? Confused | :confused:
Thanks,
Mohammad

And ever has it been that love knows not its own depth until the hour of separation

AnswerRe: obj has no properties Pin
Christian Graus1-Jun-08 4:10
protectorChristian Graus1-Jun-08 4:10 
GeneralRe: obj has no properties Pin
Mohammad A Gdeisat1-Jun-08 4:28
Mohammad A Gdeisat1-Jun-08 4:28 
QuestionScan IP's on the domain and play mp3's on remote machines Pin
Tim Foster31-May-08 3:14
Tim Foster31-May-08 3:14 
AnswerRe: Scan IP's on the domain and play mp3's on remote machines Pin
Christian Graus1-Jun-08 4:12
protectorChristian Graus1-Jun-08 4:12 
Questionwebservice which automatically updates its ads into windows project when user downloads a ad from a website(our webproject) Pin
K V Sekhar31-May-08 1:02
K V Sekhar31-May-08 1:02 
AnswerRe: webservice which automatically updates its ads into windows project when user downloads a ad from a website(our webproject) Pin
Christian Graus31-May-08 1:30
protectorChristian Graus31-May-08 1:30 
AnswerCP IGNORE Pin
leckey31-May-08 4:44
leckey31-May-08 4:44 
QuestionHow to fire the click event before mousedown event Pin
Exelioindia29-May-08 23:11
Exelioindia29-May-08 23:11 
QuestionConfigure BBCode in PEAR Pin
raaman29-May-08 18:34
raaman29-May-08 18:34 
Questionopen new winodw on mouseover and close onmouse out Pin
idsanjeevjha29-May-08 16:51
idsanjeevjha29-May-08 16:51 
QuestionRe: open new winodw on mouseover and close onmouse out Pin
idsanjeevjha29-May-08 20:17
idsanjeevjha29-May-08 20:17 
QuestionQuery regarding retrieving the domain name. In ASP Pin
Arun Abraham Jose29-May-08 0:54
Arun Abraham Jose29-May-08 0:54 
AnswerRe: Query regarding retrieving the domain name. In ASP Pin
NeverHeardOfMe30-May-08 11:52
NeverHeardOfMe30-May-08 11:52 
QuestionDownload Email content, How? Pin
hifiger200428-May-08 20:24
hifiger200428-May-08 20:24 
AnswerRe: Download Email content, How? Pin
Eduard Keilholz28-May-08 20:51
Eduard Keilholz28-May-08 20:51 
GeneralRe: Download Email content, How? Pin
hifiger200429-May-08 0:14
hifiger200429-May-08 0:14 
Questionscript to add common links Pin
mike ekim28-May-08 9:34
mike ekim28-May-08 9:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.