Click here to Skip to main content
15,887,434 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more: , +
C#
I have the following solution,

couse i cant upload pictures here is my question please could you help me?
http://sharepoint.stackexchange.com/questions/163245/how-to-convert-a-type-to-number-in-javascript-from-sharepoint[^]
Posted
Comments
Andy Lanng 25-Nov-15 4:53am    
First check what you get: console.log(typeof uitimer,uitimer)
Nderon Hiseni 25-Nov-15 5:46am    
i am gettin unidentified
Sinisa Hajnal 25-Nov-15 6:05am    
I think you're mixing your items. On the image you're showing there, you have number 25 shown. What is NaN is minutes:seconds, not koha field. timer variable has strange definition.

Try console.log (currentQuizItem), then console.log(uitimer) in you script and see the result in developer tools (there is also debugging so you could actually set breakpoints in your script)

Note that Javascript is case sensitive so your currentQuizItem has to be defined exactly like that.

Finally, why are you calling get_fieldValues instead of currentQuizItem.get_item["koha"]; ?
Nderon Hiseni 25-Nov-15 6:11am    
yes i have a 25 but when i call it it says NaN:NaN i will try your assumption

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900