Javascript Coding Problem

Đã hoàn thành Đã đăng vào Mar 25, 2012 Thanh toán khi bàn giao
Đã hoàn thành Thanh toán khi bàn giao

I need some help with some mathematical script. To view the script in action please go to

[url removed, login to view]

Click ‘CONTINUE’ to access the form that I need some assistance with.

Once you arrive at the form keep clicking ‘CONTINUE’ until you get to the Shareholders information.

If you type in a number of shares in the form for Shareholder 1 under current £1 shares held (say 100) and then click on the new share allocation ‘A’ box below and type in an amount (under 100) both ‘A’ and ‘B’ boxes re-calculate so that the sum of both are never greater than the current shares held

To see the code for this page see the following link

[url removed, login to view]

This all works very well for two classes of share (‘A’ and ‘B’) but the pages that I am attempting to write will be having 3 and 4 classes as well, so:

‘A’, ‘B’ and ‘C’ shares; and

‘A’, ‘B’, ‘C’ and ‘D’ shares

The idea that I had to overcome this would be as follows:

The problem occurs when there are more than 2 classes

If 100 shares are entered in the current share allocation and the box below is clicked then it will show 100 also. If the next box (new allocation ‘B’ shares) is clicked then the ‘A’ and ‘B’ box will show 50 shares each as it has re-calculated. The problem occurs when you click on the ‘new allocation ‘C’ box as I do not know how it can be re-calculated or if it is even possible

HTML JavaScript PHP Thiết lập Bản thảo

ID dự án: #1525815

Về dự án

10 đề xuất Dự án từ xa Mar 26, 2012 đang mở

Được trao cho:

TheInnoVibes

Please check private message .

$100 USD trong 2 ngày
(687 Đánh Giá)
8.6

10 freelancer chào giá trung bình$101 cho công việc này

toinnisfree

quick pro help. ftp and escrow required.

$135 USD trong 2 ngày
(799 Nhận xét)
8.3
jigzyy

Hi, please check PM for details, Thanks

$95 USD trong 2 ngày
(106 Nhận xét)
7.6
phpgenin

i can help you with the javascript.

$70 USD trong 1 ngày
(82 Nhận xét)
7.1
piaoxin

Hi, sire. I can do it. Please check PM. Thanks and regards.

$100 USD trong 1 ngày
(33 Nhận xét)
5.5
DanielNikolov

Hi, I am Java developer with a lot of experience in Java web development and Javascript development. I read the description of your task and I think it can be solved easily. I have an idea how to solve the problem b Thêm

$60 USD trong 1 ngày
(3 Nhận xét)
2.9
laconbass

Hi I'm starting at freelancer.com, trying to work on a small project to experience the work system. Yours seems a nice point to start, so i'm biding. I like catching and fixing crazy errors :) it could be funny

$80 USD trong 1 ngày
(0 Nhận xét)
0.0
everurs

Hi, this script can be made very easily, please check my PM for my approach.

$65 USD trong 2 ngày
(1 Nhận xét)
0.0
navashiva

I have one logic which i sent as private message to u. If you are ok with the logic then i can provide you the entire code.

$50 USD trong 1 ngày
(0 Nhận xét)
0.0
F7n2OlA6Z

Check PMB please.

$250 USD trong 1 ngày
(0 Nhận xét)
0.0