Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Dynamic Drop Down Box  RSS feed

 
Frederic Kho
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to have a drop down box that is dynamically populated by dates. I want to specify the starting and ending dates, how do I populate the middle part?
For example, I want to have a dynamic drop-down box that will contain dates from Dec. 1, 2002 to Dec. 15, 2002. The starting and ending dates are variable.
How do I do this? Thanks.
 
Dave Vick
Ranch Hand
Posts: 3244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Frederic
I guess the first question si who will decide the start and end dates? Will it be done client side or server side? You'll either need to do it with JavaScript on the client or with Java on the server.
After you answer that then let us have more info here (or over in the javascript forum).
 
Frederic Kho
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Dave,
The "to" date is data from the database. It can be a transaction date. The "from" date is the current date. Basically, the drop down box should populate dates from a transaction date to today. Can this be done with custom tags, and how? The user chooses one date from that box, and I pass that info on to another page. Thanks.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!