JavaScript Problem/Question

They have: 35 posts

Joined: Aug 2001

I've been trying to do a multiplication thing in JavaScript but can't seem to do it.

users.bigpond.com/Warlord_Khan/test3/salesinfo.htm

I've set the sheet out well and checked it all out and can't understand why it works for the first example but not for the second.

They have: 447 posts

Joined: Oct 1999

looks like it's working fine to me (in Mozilla/1.0)

did you get it sorted out?

They have: 35 posts

Joined: Aug 2001

try putting something in the quantity box to the right. It doesn't come up with anything.

Abhishek Reddy's picture

He has: 3,348 posts

Joined: Jul 2001

I'm guessing it's because you don't have a for "get_data" before you open the "bget_data" form. "bget_data" is also unclosed.

As for the script, it looks right, although I suggest you rewrite it to reuse variables/id's. Right now, you have a confusing composite of reused and new variables.

Wink

They have: 35 posts

Joined: Aug 2001

ahh musta missed that when I organised it. cheers mate

Abhishek Reddy's picture

He has: 3,348 posts

Joined: Jul 2001

No probs. Wink

dk01's picture

He has: 516 posts

Joined: Mar 2002

I am getting a js error on the second object however the first one works fine.
-dk

Abhishek Reddy's picture

He has: 3,348 posts

Joined: Jul 2001

That was the problem.

It doesn't look like he's updated the page...

dk01's picture

He has: 516 posts

Joined: Mar 2002

oh ok gotcha. thanks
-dk

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.