Wrox Programmer Forums
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 6th, 2003, 08:14 PM
Registered User
 
Join Date: Oct 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default dynamic linked drop downs without form

ok, my knowledge of asp is limited ..

is it possible to make linked dynamic drop down menus (eg if you select car in the first one it brings up a list of car makers in the second .. or if you choose boat in the first, a like of boat makers in the second) without using a form tag in code.

i basically want to use linked synamic dropdowns in a for to submit data to a db

is this possible? and if it is.. how do i do it?? could you please point me to an example or send me some code

Much Appreciated
 
Old October 7th, 2003, 04:56 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 256
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Why would you want to do this without a form? (it is eminently do-able, BTW, since it's a simple bit of Javascript, if I understand your question)

Without wrapping the whole thing in a form, however, and giving it a subit button to press, your values are never going to get as far as your server, never mind your database ;).

Unfortunately, the web is not an event-driven interface. The process goes like this:
A page is sent to the user's browser with a form containing various input types for them to fill out.
They fill ou the form and hit the submit button, and the whole lot gets sent back to the server.

These are the only two "events", as far as the server is concerned. You can have lots of stuff going on with Javascript,, while the page is sitting in the user's browser, but the server is completely unaware of them, until the values are finally submitted, at which point a static image of the values, as selected at the time of submission is sent.

Alright, I haven't answered your question, but I hope I've clarified the process, so that you can begin framing the next question ;).





Similar Threads
Thread Thread Starter Forum Replies Last Post
dealing with drop downs lisabb ASP.NET 2.0 Basics 5 May 28th, 2007 12:29 AM
dependent drop downs p2pMember ASP.NET 1.0 and 1.1 Professional 0 July 19th, 2006 05:25 AM
Excel Nested(Linked) Drop Downs umirza Excel VBA 0 May 13th, 2006 12:17 AM
Day of week Drop Downs jeffbarclay Javascript How-To 5 November 17th, 2003 08:28 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.