Flacker0763
IS-IT--Management
Hi!
This is my first post here. I'm new to javascript, but have done a lot of html/asp programming. If I post this on the wrong forum, I'm sorry.
My case is like this:
I'm making a pricing tool for our intraweb. This tool gets our SKUs from an sql-server.
I then have the cost for all SKUs, and an input field for all SKUs, and an empty input field right after.
What I need is to get the difference, in percentage, between the number written in the input-field and the cost. I though the onChange event would handle this, since I really don't want to load the whole page to update this field.
Is there an easy way to make a function doing this, wich can be called from all lines with SKUs?
I have managed to do this with 3 SKUs, but this required 3 separate functions.
The SKU-listing can be from 30 to over 100 SKUs, depending on the cathegory chosen.
/Geir
This is my first post here. I'm new to javascript, but have done a lot of html/asp programming. If I post this on the wrong forum, I'm sorry.
My case is like this:
I'm making a pricing tool for our intraweb. This tool gets our SKUs from an sql-server.
I then have the cost for all SKUs, and an input field for all SKUs, and an empty input field right after.
What I need is to get the difference, in percentage, between the number written in the input-field and the cost. I though the onChange event would handle this, since I really don't want to load the whole page to update this field.
Is there an easy way to make a function doing this, wich can be called from all lines with SKUs?
I have managed to do this with 3 SKUs, but this required 3 separate functions.
The SKU-listing can be from 30 to over 100 SKUs, depending on the cathegory chosen.
/Geir