[SOLVED] Working with JavaScript Onload |
9/12/2010 7:28:03 PM |
PHPRunner General questions | |
![]() I was trying to work with the JavaScript Onload and I can't get it to work. |
|
![]() |
Admin 9/13/2010 |
I'm not 100% sure I understand what kind of calculation you need to perform. |
![]() |
ladykathleen author 9/13/2010 |
I'm not 100% sure I understand what kind of calculation you need to perform. If you are looking for a way to calculate date/time difference in Javascript here are few examples: http://www.javascriptkit.com/javatutors/datedifference.shtml http://psoug.org/snippet/Javascript-Calculate-time-difference-between-two-dates_116.htm
|
![]() |
ladykathleen author 9/13/2010 |
On the Time Calculations I finally got most of that figured out with some help from support. They got me headed in the right direction. I am having trouble figuring out one small thing. I would like to put an IF ELSE statement in the script and I am not sure of the syntax what I need is: If TimeB < TimeA then DO this Else Do That And help is apprecated as I am just learning the syntax for javascript while using phprunner. Thanks Kathleen
|
![]() |
ladykathleen author 9/14/2010 |
Thanks to the supprt team, they answered my questions and not I can move on to the next items. |
R
|
rod 9/15/2010 |
Thanks to the supprt team, they answered my questions and not I can move on to the next items.
|
![]() |
ladykathleen author 9/15/2010 |
Hi Kathleen, I am also trying to absorb the JavaScript Onload event and can't seem to get it to work. Would you be so kind as to share what you have discovered to make this work? I am wanting to take a field "code" and have JavaScript automatically populate another field, "URL" on the add page when the user enters the "code" field. Close to the Price/Horsepower = Tax example, but from a database lookup for the "URL". Many Thanks,
|
R
|
rod 9/16/2010 |
Rod, I am not sure what part is not working for you, and I say that only because I found with the code I was using it was simple things that broke mine before I got it working. I can tell you some of things that helped me. If you have more than one funtion func() make sure they have unique names. in the ctrlA.on('change', func); statement the 'change' worked better than using 'click' for most my needs. If you send me a sample of the code your working with I might be able to help you with it better. Kathleen
|
![]() |
ladykathleen author 9/16/2010 |
Rod, |