Help me with a simple Javascript code

Përfunduar Postuar Oct 11, 2014 Paguhet në dorëzim
Përfunduar Paguhet në dorëzim

I am building an asp.net membership loyalty web application with vb.net behind. On the page to calculate a member's maximum discount allowed based on available points, I want a javascript equation and code to do some conditional calculations based on the following rules

1) Member cannot get discount which is greater than his points.

2) I can set a percentage of the member's discount to use

3) No round trips for the page. All codes must be client side.

Here is the equation:

If Invoice total >= Current Point Then

Discount = Current Point

Else If Invoice Total < Current Points Then

Discount = Invoice Total

See I dont want to reload the page so I Choose Javascript but my code not working. If you can get AJAX to work without a round trip then fine. Maybe update panel with a server side procedure to calculate the form controls

Look at my asp.net page and screenshot for more details

ASP.NET HTML JavaScript Odd Jobs Dizajn uebsajti

ID Projekti: #6578127

Rreth projektit

5 propozimet Projekti në distancë Aktiv Oct 11, 2014

Është zgjedhur fitues:

wwwtajbabu06babu

A proposal has not yet been provided

$900 JMD për 1 ditë
(0 Përshtypje)
0.0

5 profesionistë freelancer dërguan një ofertë mesatare prej $2200 për këtë punë

Dsnook100

Hi there, I would love to help you out with this! I see a few possibilities of why this may not be working! Get in touch with me if you would like for me to help you. Thanks, Doug

$3150 JMD për 1 ditë
(2 Përshtypje)
2.3
prakashdirector

SpirIT Animations is a group of 10 professional experienced 2d Animation Traditional Animation Flash Animation web and graphic designer. We provide innovative and unique designs at a very reasonable price. We create Tr Më shumë

$2250 JMD për 10 ditë
(0 Përshtypje)
0.0
tekcore2

Dear Sir Hi, Greetings of the day and thanks for sharing these details and allowing me to bid on this assignment. yes we have similar experience and can deliver u as u have mentioned in your requirements. we Më shumë

$2250 JMD për 5 ditë
(0 Përshtypje)
0.0
katilbit2

Hi, We have a great team of experts in IT domain having 10+ years of professional experience. Project will be completed as per your deadline with 99% satisfactory expectations. We will be looking forward for any in Më shumë

$2250 JMD për 1 ditë
(0 Përshtypje)
0.0
arisdwisuryono

A proposal has not yet been provided

$2450 JMD për 1 ditë
(0 Përshtypje)
0.0