•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Java section within the Software Development category of DaniWeb, a massive community of 401,735 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,230 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Java advertiser: Lunarpages Java Web Hosting
Views: 2239 | Replies: 1
![]() |
•
•
Join Date: Jan 2005
Location: defiance, oh
Posts: 19
Reputation:
Rep Power: 4
Solved Threads: 1
(code) function recalcnet(txt) {
switch (txt) {
case '0' :
recalcnet1();
break;}}
function recalcnet1() {
var prevbal = 0;
var demand = 0;
var whatif = 0;
var sched = 0;
prevbal = document.getElementById('BegInvTextbox').value;
demand = document.getElementById('dm1TextBox').value;
whatif = document.getElementById('ifm1TextBox').value;
sched = document.getElementById('fmm1TextBox').value;
document.getElementById('nm1TextBox').value(prevbal - demand + whatif + sched)};
//(/code)
I call recalcnet(0) with a onchange.
i get error saying object does support this action.
I have 4 row of 20 textbox dename, whatif sched and net. any time a text box in what if or sched changes I want to recalculat the total in net for that cloumn and any column after. I tried several versions over the last week and stillget error.
switch (txt) {
case '0' :
recalcnet1();
break;}}
function recalcnet1() {
var prevbal = 0;
var demand = 0;
var whatif = 0;
var sched = 0;
prevbal = document.getElementById('BegInvTextbox').value;
demand = document.getElementById('dm1TextBox').value;
whatif = document.getElementById('ifm1TextBox').value;
sched = document.getElementById('fmm1TextBox').value;
document.getElementById('nm1TextBox').value(prevbal - demand + whatif + sched)};
//(/code)
I call recalcnet(0) with a onchange.
i get error saying object does support this action.
I have 4 row of 20 textbox dename, whatif sched and net. any time a text box in what if or sched changes I want to recalculat the total in net for that cloumn and any column after. I tried several versions over the last week and stillget error.
![]() |
•
•
•
•
•
•
•
•
DaniWeb Java Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- why dont it work? (JavaScript / DHTML / AJAX)
- how does this work? (JavaScript / DHTML / AJAX)
- need help to get document.getElementById to work (JavaScript / DHTML / AJAX)
- getElementById is not a function (HTML and CSS)
- Please help me make this script work in Netscape (JavaScript / DHTML / AJAX)
- JavaScript's window.opener (JavaScript / DHTML / AJAX)
Other Threads in the Java Forum
- Previous Thread: URGENT : SMS Server USB Modem
- Next Thread: converting truth table to boolean algebraic equation



Linear Mode