PDA

View Full Version : Dynamic form fill using javascipt & asp recordset


websmith
02-24-2006, 02:10 PM
Hi,

Firstly and fortrightly, my javascript sucks so I could do with some help until I improve. Here's what I want to do; I have an Access table of countries and regions with an ID and ParentID field. Those with a ParentID of 0 are countries. I can manipulate them using ASP to include in a web page, but I want to add a drop-down list of all countries and when a country is selected another dropdown list is populated with the regions of that country - i.e. those with a ParentID equal to the ID field of the parent. I've been through all of the threads but can't find anything to apply (there's probably something there but I don't recognise it!). Any help appreciated.

arnyinc
02-24-2006, 05:46 PM
Here is a thread dealing with that:
http://www.codingforums.com/showthread.php?t=77993&highlight=select+based

This is fairly challenging to do with javascript, and the fact that you will be dynamically creating your javascript with asp will only complicate things.

websmith
02-24-2006, 06:13 PM
Thanks for replying. I was thinking that perhaps there's some way around this using mostly ASP with javascript writing to the form.. I'll keep working on it and post a solution if I find one.