Jump to content

.net asp mvc Jquery sahayamu


Recommended Posts

Posted
7 minutes ago, Suhaas said:

Yes. You are right. It is always populating the first row status. 

tried to add another eachloop to the status but sdi kuda first row ye populate chestundi 

 

Posted

i think u r date format is coming wrong , you should do some thing for right format 

 var countDownDate = new Date(myData).getTime();

consol.log(countDownDate );  below four values vasthunnyyi break point peditheee

1499961168000
 1499921568000
 NaN
 NaN

Posted
18 minutes ago, karna11 said:

i think u r date format is coming wrong , you should do some thing for right format 

 var countDownDate = new Date(myData).getTime();

consol.log(countDownDate );  below four values vasthunnyyi break point peditheee

1499961168000
 1499921568000
 NaN
 NaN

for some reason jquery Date().getTime(); aa long number istundi. 

Anduke I'm calculating it below like this

                                var days = Math.floor(distance / (1000 * 60 * 60 * 24));
                                var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
                                var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
                                var seconds = Math.floor((distance % (1000 * 60)) / 1000);

 

PS: idi anta w3 schools lo vundi naa sonta logic kaadu 

all I'm trying to do is set the timer on each row

Posted

try parsing the string to dateformat. 

var countDownDate = new Date(Date.parse(myData));
     alert(countDownDate)

this return  Thu Jul 13 2017 11:52:48 GMT-0500 (Central Daylight Time) for the first row.

7/13/2017 13:52:48 AM -This date returns invalid..

 

Posted

this is also incorrect date format  

var now = new Date().getTime();

alert(now) returns 1499976834037

 

 

 

Posted
8 minutes ago, SBAG said:

this is also incorrect date format  

var now = new Date().getTime();

alert(now) returns 1499976834037

 

 

 

Date formatting tho issue yemi ledu bhayya. Issue is that only the first row gets updated and not others.

Posted
25 minutes ago, Suhaas said:

There you go bro. 

http://jsfiddle.net/hpxrt9tb/24/

Meeting lo unde. Late ayindi zara. 

you rawcked bro super 

ippudu nuvvu ichhina code ni ardam chesukovali -- yenta time padutundo ardam avvadaniki 

 

Posted
4 minutes ago, bevarse said:

you rawcked bro super 

ippudu nuvvu ichhina code ni ardam chesukovali -- yenta time padutundo ardam avvadaniki 

 

Sure Bro. Happy to help. Pedha changes em levu. Emaina questions unte msg me. 

Posted
2 hours ago, Suhaas said:

There you go bro. 

http://jsfiddle.net/hpxrt9tb/24/

Meeting lo unde. Late ayindi zara. 

Nice recurrisive approach, function as parameter and call back

TS , stackoverflow looo veyyi Question, Suhas akkada answer chesthaduu,  he 'll get reputation 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...