PDA

View Full Version : Dynamic Field


rob294118
01-10-2011, 09:22 AM
Please let me know how I would do this and what Webassist tools I would use.

I'm trying to do the follow:

Merchant:

(drop-down list populated dynamic from a DB table)


Dollar Amount $:

(text field entered by user)


Redemption Value $:

(calculated field, based on a percentage value from a DB table for the selected merchant)

Dave Buchholz
01-11-2011, 02:04 AM
Rob,

you would need to use javascript to do this, I have set up an example using jQuery here (http://www.i-cre8.com/blog/tutorials/jquery/calculated-field/index.php) to show you how you could achieve this. Any questions please ask away but the code should be pretty self explanatory.

rob294118
01-11-2011, 07:47 AM
Thank you very much! This works great.

Do you know how I would allow a person to add multiple items like in this example:

http://www.cardpool.com/sell/offers

Dave Buchholz
01-11-2011, 08:01 AM
That's like a shopping cart system where each item is stored in an array, you could use eCart to do something like this if you wanted.

rob294118
01-11-2011, 08:10 AM
ok. thanks.

One more question. Do you know how to set up "Printing Labels" from the U.S. Post Office like ebay and Paypal let you do? I want the customer to be able to print a label from my site.

Dave Buchholz
01-11-2011, 08:14 AM
Rob,

sorry I have never had to implement something like that, I would assume that there is an API that you would hook into if you have an account with them but that is just a guess.

rob294118
01-11-2011, 08:16 AM
ok. thanks for your help.