C
|
cgphp 11/8/2011 |
Post the JS code. |
P
|
psiconsultants author 11/8/2011 |
Post the JS code.
|
C
|
cgphp 11/8/2011 |
Do you get some error in firebug ? What if no value is set for a field (null value) ? |
![]() |
Admin 11/8/2011 |
A quick suggestion. parseFloat() function won't be able to handle empty or null values which means you have to populate all fields in order to perform calculations. I would suggest replacing parseFloat() with + that will deal with empty values without breaking. function func() { |
P
|
psiconsultants author 11/8/2011 |
Thanks for the suggestions. There actually aren't any missing values as it is being forced to record 1 of the table and all fields are populated. All fields are also required. (although the validation doesn't work either when the page fails. Makes sense I guess if the javascript is failing on other stuff.) I actually also initially had some code to check for missing values before calling the function just in case, but I removed it temporarily to eliminate it as my problem. But I'm pretty sure missing values aren't causing the problem. I did try Sergey's code snippet anyway and I get the same exact results. |
P
|
psiconsultants author 11/8/2011 |
I installed firebug, but the javascript does't fail in firefox. However this does let me track down my cosmetic problem. |
C
|
cgphp 11/8/2011 |
keyup is not the right event for a dropdown. Use change instead: ctrlAssetType.on('change', func); |
![]() |
Admin 11/8/2011 |
Similar developer tool is available in IE, press F12 to open it. Not sure what was the first version where they started shipping. |
P
|
psiconsultants author 11/8/2011 |
My version of IE does have the debugging available but I'm not sure what to look for as I'm not even familiar with javascript. But, I saw one more interesting thing... I can actually reproduce the problem in the SAME browser. If I keep hitting refresh, it will load correctly sometimes, and other times it will fail. I initially thought it was happening with some browsers and not others, but it's actually having problems in the same browser sporadically. |
![]() |
Admin 11/8/2011 |
It does look like the case of page not being loaded completely and thus Javascript OnLoad event is never fired. |
P
|
psiconsultants author 11/9/2011 |
It does look like the case of page not being loaded completely and thus Javascript OnLoad event is never fired. Just in case try to upload this app to any other server i.e. to Demo Account to see if this makes any difference.
|
P
|
psiconsultants author 11/10/2011 |
Upon further review, the problem actually is reproduced on the asprunner.net demo server. It only happens with IE, but not Firefox or Chrome. |
A
|
acpan 11/10/2011 |
Upon further review, the problem actually is reproduced on the asprunner.net demo server. It only happens with IE, but not Firefox or Chrome.
|
![]() |
Admin 11/10/2011 |
psiconsultants, |