Click here to Skip to main content
15,921,646 members
Home / Discussions / JavaScript
   

JavaScript

 
GeneralRe: dwg to jpg using javascript Pin
Rajesh R Subramanian19-Jan-17 12:38
professionalRajesh R Subramanian19-Jan-17 12:38 
GeneralRe: dwg to jpg using javascript Pin
dandy7219-Jan-17 13:42
dandy7219-Jan-17 13:42 
GeneralRe: dwg to jpg using javascript Pin
Richard MacCutchan19-Jan-17 22:26
mveRichard MacCutchan19-Jan-17 22:26 
GeneralRe: dwg to jpg using javascript Pin
Rajesh R Subramanian20-Jan-17 0:01
professionalRajesh R Subramanian20-Jan-17 0:01 
AnswerRe: Can you tell me what Jquery script this? Pin
ZurdoDev19-Jan-17 2:00
professionalZurdoDev19-Jan-17 2:00 
GeneralRe: Can you tell me what Jquery script this? Pin
Richard Deeming19-Jan-17 2:35
mveRichard Deeming19-Jan-17 2:35 
GeneralRe: Can you tell me what Jquery script this? Pin
ZurdoDev19-Jan-17 3:12
professionalZurdoDev19-Jan-17 3:12 
GeneralRe: Can you tell me what Jquery script this? Pin
Richard Deeming19-Jan-17 3:57
mveRichard Deeming19-Jan-17 3:57 
GeneralRe: Can you tell me what Jquery script this? Pin
ZurdoDev19-Jan-17 4:11
professionalZurdoDev19-Jan-17 4:11 
QuestionHi, I really new to javascript. I was doing a JavaScript program that accept two integers and display the larger. Pin
abdul kabeer18-Jan-17 7:19
abdul kabeer18-Jan-17 7:19 
AnswerRe: Hi, I really new to javascript. I was doing a JavaScript program that accept two integers and display the larger. Pin
Richard Deeming18-Jan-17 8:23
mveRichard Deeming18-Jan-17 8:23 
GeneralRe: Hi, I really new to javascript. I was doing a JavaScript program that accept two integers and display the larger. Pin
abdul kabeer18-Jan-17 8:40
abdul kabeer18-Jan-17 8:40 
GeneralRe: Hi, I really new to javascript. I was doing a JavaScript program that accept two integers and display the larger. Pin
Richard Deeming18-Jan-17 8:50
mveRichard Deeming18-Jan-17 8:50 
GeneralRe: Hi, I really new to javascript. I was doing a JavaScript program that accept two integers and display the larger. Pin
abdul kabeer19-Jan-17 7:38
abdul kabeer19-Jan-17 7:38 
AnswerRe: Hi, I really new to javascript. I was doing a JavaScript program that accept two integers and display the larger. Pin
Pawan Kumar18-Jan-17 8:24
Pawan Kumar18-Jan-17 8:24 
Questiontrying to make a date difference variable auto populate another text box (in another function) Pin
Barnsley711-Jan-17 23:16
Barnsley711-Jan-17 23:16 
I've got this script which works out a users pension after they enter in their Total Years in the Scheme 'pensionYears' along with their salary. - This bit works fine - a function called doMath() works out lots of other financial stuff.

I've now put 2 calendars in there: 'dateStart' and 'dateEnd'.
I want to use the difference between these 2 dates to work out the user's total years in service instead of having the user enter in the total years. I've got part of this working - I've got a text box called 'diffYrs' which does work out the difference between the 2 dates.

What I can't do is grab the value from 'diffYrs' and use this in my doMath() function and make 'pensionYears' = 'diffYrs'. Not sure if this is to do with the fact that its outside the scope and needs to be declared as some kind of global variable? - I tried putting everything inside the same function but that didn't work (not sure if that's because one is more a jquery script and other javaScript?)

I was trying to use something like:
var pensionYears = $('#diffYrs');//trying to auto populate Total years in scheme


here's a fiddle:
https://jsfiddle.net/yorkshireweb/ye2nboxL/
thanks for looking

modified 12-Jan-17 5:29am.

AnswerRe: trying to make a date difference variable auto populate another text box (in another function) Pin
Richard Deeming12-Jan-17 7:06
mveRichard Deeming12-Jan-17 7:06 
GeneralRe: trying to make a date difference variable auto populate another text box (in another function) Pin
Barnsley712-Jan-17 22:30
Barnsley712-Jan-17 22:30 
QuestionHow to dynamically Add and Close tab items in Browser Pin
Aniruddha.A10-Jan-17 17:42
Aniruddha.A10-Jan-17 17:42 
QuestionCalendar next / previous links not working javascript Pin
hmkoyan8-Jan-17 2:07
hmkoyan8-Jan-17 2:07 
QuestionRe: Calendar next / previous links not working javascript Pin
ZurdoDev9-Jan-17 7:19
professionalZurdoDev9-Jan-17 7:19 
QuestionHow to override .js file Pin
Member 129321392-Jan-17 22:26
Member 129321392-Jan-17 22:26 
QuestionPopup div Pin
Otekpo Emmanuel25-Dec-16 3:00
Otekpo Emmanuel25-Dec-16 3:00 
AnswerRe: Popup div Pin
Afzaal Ahmad Zeeshan25-Dec-16 3:41
professionalAfzaal Ahmad Zeeshan25-Dec-16 3:41 
GeneralRe: Popup div Pin
Otekpo Emmanuel25-Dec-16 4:42
Otekpo Emmanuel25-Dec-16 4:42 

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.