CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Call a Pricing function

Print topic Send  topic

Author Message
pnjones

Posts: 42
Posted: 10/13/2008, 8:20 AM

I have a form for a booking system, it uses 3 dependant listboxes to define the item required and the price is based on the length which was entered in a 4th field.

I want the user to see the price before they make the selection and the function to populate a text box on the form without submitting the form to the database

I have added the function to custom code - BEFORE INSERT and the price is added to the booking correctly but because this is happen on insert the user would not have the opportunity to see the price.

I am sure this is a common requirment for shopping carts with different size requirements etc. If anybody can help it would be much appreciated

Thanks


_________________
Regards

Pat
View profile  Send private message
marcwolf


Posts: 361
Posted: 11/27/2008, 2:32 PM

Hi there.

Well - this is where AJAX or a similar technology comes in, and you are seeing the value of WEB 2.0

The basics are this (and you can flesh them out as you need)

1. On the client side set up an OnChange event on these 3 boxes.

2. When any of them have changed then do a AJAX call back to the server passing these values

3. Wait for the process to finish and tehn display the returned value into the text box.

Hope this give some insight..

Dave
_________________
' Coding Coding Coding
Keep Those Keyboards Coding.
Raw Code!!!!!!!
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.