ASP: Dynamic form Lists and dependant text boxes?

  • Grantspad
  • Newbie
  • Newbie
  • Grantspad
  • Posts: 13
  • Loc: M'Bro

Post 3+ Months Ago

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
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Posts: 9090
  • Loc: Seattle, WA & Phoenix, AZ

Post 3+ Months Ago

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.
  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Posts: 4581
  • Loc: Maryland

Post 3+ Months Ago

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

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 117 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
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.