User Name Password Register
DaniWeb IT Discussion Community
All
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
Reply
Join Date: Jan 2005
Location: defiance, oh
Posts: 19
Reputation: sqlchopper is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 1
sqlchopper sqlchopper is offline Offline
Newbie Poster

Help how do i get this to work document.getElementById

  #1  
Apr 10th, 2006
(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.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jun 2004
Location: H4x0rville
Posts: 2,105
Reputation: server_crash is on a distinguished road 
Rep Power: 9
Solved Threads: 18
server_crash's Avatar
server_crash server_crash is offline Offline
Postaholic

Re: how do i get this to work document.getElementById

  #2  
Apr 10th, 2006
Java IS NOT JavaScript.
JavaScript IS NOT Java.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Java Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Java Forum

All times are GMT -4. The time now is 9:29 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC