calculation

Order form with jQuery Calculation plugin using variable pricing

Greetings, I am trying to code a solution for an order form pricing calculator using the excellent calculation plugin. My form has two different prices for each item, one for quantities under 10 and one for quantities over that amount. This is the code I have so far: $(document).ready(function() { // bind the recalc function to t...

Recalculate center math question

Want to recalculate x and y in a centered layout relative to the current viewers resolution. I have two numbers a set of coordinates x and y. x=140 y=80 x and y was recorded in a resolution sessionWidth, sessionHeight sessionWidth = 1024 sessionHeight = 400 Want to recalculate x and y so that they are relative to the viewers resol...

how to calculate Internet checksum?

I have some question regarding how Internet checksum is calculated. I couldn't find any good explaination from the book, so I ask it here. I'm not sure if this is the correct place to ask, so I'm sorry if I asked it in wrong place. If you look at the following example. The following two message is sent 10101001, and 00111001. The checks...

change div content based on three for elements

Hey guys, I'm new to jQuery/js and having a hard time figuring this out. There are two fields in a form of mine i want to do some calculations with, what i tried is this: jQuery.fn.calculateit = function(){ var one = $("#one").val(); var two = $("#two").val(); //total var total = one + two; $("#total").text(total)...