ASP: Dynamic form Lists and dependant text boxes?

  • Grantspad
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Oct 10, 2003
  • Posts: 13
  • Loc: M'Bro
  • Status: Offline

Post November 5th, 2003, 2:57 am

I am working on a site at the moment:

http://www.colourstonecards.com/ordering.asp

and I am having trouble with the ordering page. I would like a dynamic form list to look at a database and when the user selects a product code, the text boxes containing description and price change too to reflect the product code.

The user will be entering in their contact details, so I dont want the page to reload too because I will lose that info.

Please does anyone have any suggestions?

It is an attempt at a cheaper alternative to a shopping cart, the order is emailed to the admin once the form has been submited.

Thank You

Grant
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post November 5th, 2003, 2:57 am

  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Joined: Dec 20, 2002
  • Posts: 8922
  • Loc: Seattle, WA & Phoenix, AZ
  • Status: Online

Post November 5th, 2003, 3:42 am

Well in order to do what you want you will most likely have to incorporate that within JavaScript. You wouldn't be able to access any databases with ASP without refreshing the page which means you would have to load up all the data within your page so that the JavaScript could dynamically change the fields when they enter a different product code. That would be the only way I think you could do it without having to refresh your webpage.
Ozzu Hosting - Want your website on a fast server like Ozzu?
  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Joined: Jun 15, 2003
  • Posts: 4583
  • Loc: Maryland
  • Status: Offline

Post November 5th, 2003, 5:35 pm

you could refresh through a the post variables, and set the value of each field to the variable so it will re-enter the values
Pixel Acres V2

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: Bigwebmaster and 216 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.