Well, nether alert says 'undefined.' The first one actually says [object] and the second just shows a box... no value, no nothing, just the box with the OK button. Here's my page source after the javascript runs.. I think everything looks alright. See any errors or anything interesting that would help me? Thanks!
2
3 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4
5 <html xmlns="http://www.w3.org/1999/xhtml">
6 <head><title>
7 Untitled Page
8 </title>
9 <script type="text/javascript">
10 function TestCalc()
11 {
12 var tempCalc = 0.0;
13 alert("Calculating");
14 var totalExpenses = document.getElementById("ctl00_ContentPlaceHolder1_RadNumericTextBox1").value;
15 var cashAdvance = document.getElementById("ctl00_ContentPlaceHolder1_RadNumericTextBox2").value;
16 var directBillings = document.getElementById("ctl00_ContentPlaceHolder1_RadNumericTextBox3").value;
17
18 var due = (totalExpenses - cashAdvance - directBillings);
19 alert(due);
20 alert(document.getElementById("ctl00_ContentPlaceHolder1_RadNumericTextBox4"));
21 alert(document.getElementById("ctl00_ContentPlaceHolder1_RadNumericTextBox4").value);
22
23
24 document.getElementById("ctl00_ContentPlaceHolder1_RadNumericTextBox4").value = due;
25
26 }
27 </script>
28 <link type="text/css" rel="stylesheet" href="/TestCalc/WebResource.axd?d=oZ--AfSbup__fXP-L8VRTZrG5IE0YvPFUm8bkG-8Sq-t-5zl3PTSEj_XOWo_YD3F0sEJ8iaWI0Nk4nPZN8yQ6-mIDfrsNnXUJ0ZCkiGxmdM1&t=633334901220000000" /></head>
29 <body bgcolor="#cccccc">
30 <form name="aspnetForm" method="post" action="Default.aspx" id="aspnetForm">
31 <div>
32 <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwULLTE0Mjc4NjEwMjAPZBYCZg9kFgICAw9kFgICAQ9kFggCAQ8UKwACFCsABw8WBB4NT3JpZ2luYWxWYWx1ZWUeDUxhYmVsQ3NzQ2xhc3MFE3JhZExhYmVsQ3NzX0RlZmF1bHRkFgYeBVdpZHRoGwAAAA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display:inline;zoom:1;width:125px;">
40 <!-- 2.1.2 --><script type="text/javascript" src="/TestCalc/WebResource.axd?d=oZ--AfSbup__fXP-L8VRTZrG5IE0YvPFUm8bkG-8Sq-t-5zl3PTSEj_XOWo_YD3FikzrNrpGkGNN1LH8l2yF85uR-b3hrY2pDPWbFDew09o1&t=633334901220000000"></script><script type="text/javascript" src="/TestCalc/WebResource.axd?d=oZ--AfSbup__fXP-L8VRTZrG5IE0YvPFUm8bkG-8Sq-t-5zl3PTSEj_XOWo_YD3FikzrNrpGkGNN1LH8l2yF87Lq893SCSrLApn4bOQm5V81&t=633334901220000000"></script><span id="ctl00_ContentPlaceHolder1_RadNumericTextBox2StyleSheetHolder" style="display:none;"></span><table cellpadding="0" cellspacing="0" style="border-width:0;border-collapse:collapse;table-layout:fixed;width:100%;">
41 <tr>
42 <td class="inputCell" style="width:100%;"><input type="text" id="ctl00_ContentPlaceHolder1_RadNumericTextBox2_text" class="radEnabledCss_Default" style="width:100%;" /><input style="visibility:hidden;position:absolute;right:0;width:0;height:0;overflow:hidden;border:0;padding:0;margin:0;" id="ctl00_ContentPlaceHolder1_RadNumericTextBox2" value="" type="text" /><input style="visibility:hidden;position:absolute;right:0;width:0;height:0;overflow:hidden;border:0;padding:0;margin:0;" id="ctl00_ContentPlaceHolder1_RadNumericTextBox2_Value" name="ctl00$ContentPlaceHolder1$RadNumericTextBox2" value="" type="text" /></td>
43 </tr>
44 </table><script type="text/javascript">window["ctl00_ContentPlaceHolder1_RadNumericTextBox2"] = new RadNumericTextBox("ctl00_ContentPlaceHolder1_RadNumericTextBox2", {"IncrementSettings":{"Step":1,"InterceptArrowKeys":true,"InterceptMouseWheel":true},"ShowSpinButtons":false,"MaxValue":70368744177664,"MinValue":-70368744177664,"SelectionOnFocus":3,"NumberFormat":{"DecimalSeparator":".","AllowRounding":true,"DecimalDigits":2,"GroupSizes":3,"GroupSeparator":",","NegativePattern":"-n","PositivePattern":"n","NegativeSign":"-"},"PostBackEventReferenceScript":"","AutoPostBack":false,"EmptyMessage":"","ClientEvents":{"OnError":"","OnButtonClick":"","OnLoad":"","OnMouseOut":"","OnMouseOver":"","OnFocus":"","OnBlur":"","OnDisable":"","OnEnable":"","OnValueChanged":"","OnKeyPress":"","OnEnumerationChanged":"","OnMoveUp":"","OnMoveDown":"","OnShowHint":""},"ShowButton":false,"ButtonsPosition":1,"Enabled":true}, {HoveredStyle: ["width:125px;", "radHoverCss_Default"],InvalidStyle: ["width:125px;", "radInvalidCss_Default"],DisabledStyle: ["width:125px;", "radDisabledCss_Default"],FocusedStyle: ["width:125px;", "radFocusedCss_Default"],EmptyMessageStyle: ["width:125px;", "radEmptyMessageCss_Default"],EnabledStyle: ["width:125px;", "radEnabledCss_Default"],NegativeStyle: ["width:125px;", "radNegativeCss_Default"]});window["ctl00_ContentPlaceHolder1_RadNumericTextBox2"].OriginalValue = '';</script>
45 </div>
46 <div id="ctl00_ContentPlaceHolder1_RadNumericTextBox3_wrapper" class="radInput_Default" style="display:inline;zoom:1;width:125px;">
47 <!-- 2.1.2 --><span id="ctl00_ContentPlaceHolder1_RadNumericTextBox3StyleSheetHolder" style="display:none;"></span><table cellpadding="0" cellspacing="0" style="border-width:0;border-collapse:collapse;table-layout:fixed;width:100%;">
48 <tr>
49 <td class="inputCell" style="width:100%;"><input type="text" id="ctl00_ContentPlaceHolder1_RadNumericTextBox3_text" class="radEnabledCss_Default" style="width:100%;" /><input style="visibility:hidden;position:absolute;right:0;width:0;height:0;overflow:hidden;border:0;padding:0;margin:0;" id="ctl00_ContentPlaceHolder1_RadNumericTextBox3" value="" type="text" /><input style="visibility:hidden;position:absolute;right:0;width:0;height:0;overflow:hidden;border:0;padding:0;margin:0;" id="ctl00_ContentPlaceHolder1_RadNumericTextBox3_Value" name="ctl00$ContentPlaceHolder1$RadNumericTextBox3" value="" type="text" /></td>
50 </tr>
51 </table><script type="text/javascript">window["ctl00_ContentPlaceHolder1_RadNumericTextBox3"] = new RadNumericTextBox("ctl00_ContentPlaceHolder1_RadNumericTextBox3", {"IncrementSettings":{"Step":1,"InterceptArrowKeys":true,"InterceptMouseWheel":true},"ShowSpinButtons":false,"MaxValue":70368744177664,"MinValue":-70368744177664,"SelectionOnFocus":3,"NumberFormat":{"DecimalSeparator":".","AllowRounding":true,"DecimalDigits":2,"GroupSizes":3,"GroupSeparator":",","NegativePattern":"-n","PositivePattern":"n","NegativeSign":"-"},"PostBackEventReferenceScript":"","AutoPostBack":false,"EmptyMessage":"","ClientEvents":{"OnError":"","OnButtonClick":"","OnLoad":"","OnMouseOut":"","OnMouseOver":"","OnFocus":"","OnBlur":"","OnDisable":"","OnEnable":"","OnValueChanged":"","OnKeyPress":"","OnEnumerationChanged":"","OnMoveUp":"","OnMoveDown":"","OnShowHint":""},"ShowButton":false,"ButtonsPosition":1,"Enabled":true}, {HoveredStyle: ["width:125px;", "radHoverCss_Default"],InvalidStyle: ["width:125px;", "radInvalidCss_Default"],DisabledStyle: ["width:125px;", "radDisabledCss_Default"],FocusedStyle: ["width:125px;", "radFocusedCss_Default"],EmptyMessageStyle: ["width:125px;", "radEmptyMessageCss_Default"],EnabledStyle: ["width:125px;", "radEnabledCss_Default"],NegativeStyle: ["width:125px;", "radNegativeCss_Default"]});window["ctl00_ContentPlaceHolder1_RadNumericTextBox3"].OriginalValue = '';</script>
52 </div>
53 <div id="ctl00_ContentPlaceHolder1_RadNumericTextBox1_wrapper" class="radInput_Default" style="display:inline;zoom:1;width:125px;">
54 <!-- 2.1.2 --><span id="ctl00_ContentPlaceHolder1_RadNumericTextBox1StyleSheetHolder" style="display:none;"></span><table cellpadding="0" cellspacing="0" style="border-width:0;border-collapse:collapse;table-layout:fixed;width:100%;">
55 <tr>
56 <td class="inputCell" style="width:100%;"><input type="text" id="ctl00_ContentPlaceHolder1_RadNumericTextBox1_text" class="radEnabledCss_Default" onBlur="TestCalc()" style="width:100%;" /><input style="visibility:hidden;position:absolute;right:0;width:0;height:0;overflow:hidden;border:0;padding:0;margin:0;" id="ctl00_ContentPlaceHolder1_RadNumericTextBox1" value="" type="text" /><input style="visibility:hidden;position:absolute;right:0;width:0;height:0;overflow:hidden;border:0;padding:0;margin:0;" id="ctl00_ContentPlaceHolder1_RadNumericTextBox1_Value" name="ctl00$ContentPlaceHolder1$RadNumericTextBox1" value="" type="text" /></td>
57 </tr>
58 </table><script type="text/javascript">window["ctl00_ContentPlaceHolder1_RadNumericTextBox1"] = new RadNumericTextBox("ctl00_ContentPlaceHolder1_RadNumericTextBox1", {"IncrementSettings":{"Step":1,"InterceptArrowKeys":true,"InterceptMouseWheel":true},"ShowSpinButtons":false,"MaxValue":70368744177664,"MinValue":-70368744177664,"SelectionOnFocus":3,"NumberFormat":{"DecimalSeparator":".","AllowRounding":true,"DecimalDigits":2,"GroupSizes":3,"GroupSeparator":",","NegativePattern":"-n","PositivePattern":"n","NegativeSign":"-"},"PostBackEventReferenceScript":"","AutoPostBack":false,"EmptyMessage":"","ClientEvents":{"OnError":"","OnButtonClick":"","OnLoad":"","OnMouseOut":"","OnMouseOver":"","OnFocus":"","OnBlur":"","OnDisable":"","OnEnable":"","OnValueChanged":"","OnKeyPress":"","OnEnumerationChanged":"","OnMoveUp":"","OnMoveDown":"","OnShowHint":""},"ShowButton":false,"ButtonsPosition":1,"Enabled":true}, {HoveredStyle: ["width:125px;", "radHoverCss_Default"],InvalidStyle: ["width:125px;", "radInvalidCss_Default"],DisabledStyle: ["width:125px;", "radDisabledCss_Default"],FocusedStyle: ["width:125px;", "radFocusedCss_Default"],EmptyMessageStyle: ["width:125px;", "radEmptyMessageCss_Default"],EnabledStyle: ["width:125px;", "radEnabledCss_Default"],NegativeStyle: ["width:125px;", "radNegativeCss_Default"]});window["ctl00_ContentPlaceHolder1_RadNumericTextBox1"].OriginalValue = '';</script>
59 </div>
60 <div id="ctl00_ContentPlaceHolder1_RadNumericTextBox4_wrapper" class="radInput_Default" style="display:inline;zoom:1;width:125px;">
61 <!-- 2.1.2 --><span id="ctl00_ContentPlaceHolder1_RadNumericTextBox4StyleSheetHolder" style="display:none;"></span><table cellpadding="0" cellspacing="0" style="border-width:0;border-collapse:collapse;table-layout:fixed;width:100%;">
62 <tr>
63 <td class="inputCell" style="width:100%;"><input type="text" id="ctl00_ContentPlaceHolder1_RadNumericTextBox4_text" class="radEnabledCss_Default" style="width:100%;" /><input style="visibility:hidden;position:absolute;right:0;width:0;height:0;overflow:hidden;border:0;padding:0;margin:0;" id="ctl00_ContentPlaceHolder1_RadNumericTextBox4" value="" type="text" /><input style="visibility:hidden;position:absolute;right:0;width:0;height:0;overflow:hidden;border:0;padding:0;margin:0;" id="ctl00_ContentPlaceHolder1_RadNumericTextBox4_Value" name="ctl00$ContentPlaceHolder1$RadNumericTextBox4" value="" type="text" /></td>
64 </tr>
65 </table><script type="text/javascript">window["ctl00_ContentPlaceHolder1_RadNumericTextBox4"] = new RadNumericTextBox("ctl00_ContentPlaceHolder1_RadNumericTextBox4", {"IncrementSettings":{"Step":1,"InterceptArrowKeys":true,"InterceptMouseWheel":true},"ShowSpinButtons":false,"MaxValue":70368744177664,"MinValue":-70368744177664,"SelectionOnFocus":3,"NumberFormat":{"DecimalSeparator":".","AllowRounding":true,"DecimalDigits":2,"GroupSizes":3,"GroupSeparator":",","NegativePattern":"-n","PositivePattern":"n","NegativeSign":"-"},"PostBackEventReferenceScript":"","AutoPostBack":false,"EmptyMessage":"","ClientEvents":{"OnError":"","OnButtonClick":"","OnLoad":"","OnMouseOut":"","OnMouseOver":"","OnFocus":"","OnBlur":"","OnDisable":"","OnEnable":"","OnValueChanged":"","OnKeyPress":"","OnEnumerationChanged":"","OnMoveUp":"","OnMoveDown":"","OnShowHint":""},"ShowButton":false,"ButtonsPosition":1,"Enabled":true}, {HoveredStyle: ["width:125px;", "radHoverCss_Default"],InvalidStyle: ["width:125px;", "radInvalidCss_Default"],DisabledStyle: ["width:125px;", "radDisabledCss_Default"],FocusedStyle: ["width:125px;", "radFocusedCss_Default"],EmptyMessageStyle: ["width:125px;", "radEmptyMessageCss_Default"],EnabledStyle: ["width:125px;", "radEnabledCss_Default"],NegativeStyle: ["width:125px;", "radNegativeCss_Default"]});window["ctl00_ContentPlaceHolder1_RadNumericTextBox4"].OriginalValue = '';</script>
66 </div>
67 </p>
68
69 </div>
70
71 <div>
72
73 <input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEWBQLAub7zDQLV0LPBAQLV0J/mCALV0MecCgLV0IsLbY6WAvmYhIDqBdk2jgKBhXXyF2U=" />
74 </div></form>
75 </body>
76 </html>
77