Click here to Skip to main content
15,921,371 members
Home / Discussions / Web Development
   

Web Development

 
QuestionREST web services Pin
DGtech2-Jun-08 4:29
DGtech2-Jun-08 4:29 
AnswerRe: REST web services Pin
led mike2-Jun-08 4:37
led mike2-Jun-08 4:37 
QuestionURLRewriter.Net Pin
markymark822-Jun-08 4:14
markymark822-Jun-08 4:14 
AnswerRe: URLRewriter.Net Pin
markymark823-Jun-08 1:02
markymark823-Jun-08 1:02 
GeneralRe: URLRewriter.Net Pin
leppie3-Jun-08 1:47
leppie3-Jun-08 1:47 
GeneralRe: URLRewriter.Net Pin
markymark823-Jun-08 2:36
markymark823-Jun-08 2:36 
QuestionMozilla rendering Pin
netDeveloper2-Jun-08 3:28
netDeveloper2-Jun-08 3:28 
AnswerRe: Rendered differently in explorer and firefox Pin
led mike2-Jun-08 4:42
led mike2-Jun-08 4:42 
GeneralRe: Rendered differently in explorer and firefox [modified] Pin
netDeveloper2-Jun-08 4:45
netDeveloper2-Jun-08 4:45 
GeneralRe: Rendered differently in explorer and firefox Pin
led mike2-Jun-08 5:14
led mike2-Jun-08 5:14 
GeneralRe: Rendered differently in explorer and firefox Pin
netDeveloper2-Jun-08 5:31
netDeveloper2-Jun-08 5:31 
GeneralRe: Rendered differently in explorer and firefox Pin
netDeveloper2-Jun-08 23:43
netDeveloper2-Jun-08 23:43 
GeneralRe: Rendered differently in explorer and firefox Pin
led mike3-Jun-08 5:31
led mike3-Jun-08 5:31 
AnswerRe: Mozilla rendering Pin
Shog92-Jun-08 6:12
sitebuilderShog92-Jun-08 6:12 
QuestionInsert the data into dropdownlist using javascript Pin
r aa j1-Jun-08 23:05
r aa j1-Jun-08 23:05 
QuestionHow to create automatic page Pin
Poonam Gandash1-Jun-08 21:30
Poonam Gandash1-Jun-08 21:30 
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 

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.