进行中

Help me with a simple Javascript code

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, 网站设计

查看更多: web page design with html codes, web page design with codes, web page design html codes, vb.net code help, vb.net calculations, procedure to design website, my code, html codes for web page design, get help with a design, conditional design, client side code, choose help, web design html codes, simple html code for website design, html web design codes, html codes web design, update my simple net application, simple javascript, building a simple, without page reload, javascript controls, discount membership website, html javascript code simple, simple html code, controls javascript

About the Employer:
( 3 reviews ) Spanish Town, Jamaica

项目ID: #6578127

已悬赏给:

wwwtajbabu06babu

A proposal has not yet been provided

$900 JMD 在1天内
(0条评论)
0.0

5名威客为此工作的平均竞标价是$2200

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

$3150JMD 在1天里
(2条评论)
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 更多

$2250 JMD 在10天内
(0条评论)
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 更多

$2250 JMD 在5天内
(0条评论)
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 更多

$2250JMD 在1天里
(0条评论)
0.0
arisdwisuryono

A proposal has not yet been provided

$2450JMD 在1天里
(0条评论)
0.0