Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asptoday_discuss thread: Getting the date in to a drop down menu.


Message #1 by p.farenden@a... on Fri, 4 Oct 2002 15:27:35
Apologies for this, but I have been asked to finish off a project for a 
Sports Photographic Agency, and they need a drop down menu which has 
options like 'Today' 'Last 24 hours' which when selected brings up all the 
images with the relevant date in the image caption. 
Now, I can add the date physically in to a drop down menu, but I need help 
in finding a solution which automates the process of changing the dates in 
a daily routine. 
Any ideas will be much appreciated.
Many Thanks
Paul
Message #2 by "Steven Van de Weyer" <vandeweyer.s@p...> on Mon, 7 Oct 2002 15:05:16
> Apologies for this, but I have been asked to finish off a project for a 
S> ports Photographic Agency, and they need a drop down menu which has 
o> ptions like 'Today' 'Last 24 hours' which when selected brings up all 
the 
i> mages with the relevant date in the image caption. 
N> ow, I can add the date physically in to a drop down menu, but I need 
help 
i> n finding a solution which automates the process of changing the dates 
in 
a>  daily routine. 
A> ny ideas will be much appreciated.
M> any Thanks
P> aul
Message #3 by "Steven Van de Weyer" <vandeweyer.s@p...> on Mon, 7 Oct 2002 15:11:24
Paul,

Try something like this:

<select name="blabla">
<option value="<%=now%>">Today</option>
<option value="<%=now-1%>">Last 24 hours</option>
<!-- etc.... -->
</select>

In the next page you can use request("blabla") to compose a date using the 
day() month() and year() functions.


Steven.

> Apologies for this, but I have been asked to finish off a project for a 
S> ports Photographic Agency, and they need a drop down menu which has 
o> ptions like 'Today' 'Last 24 hours' which when selected brings up all 
the 
i> mages with the relevant date in the image caption. 
N> ow, I can add the date physically in to a drop down menu, but I need 
help 
i> n finding a solution which automates the process of changing the dates 
in 
a>  daily routine. 
A> ny ideas will be much appreciated.
M> any Thanks
P> aul
Message #4 by "paul farenden" <P.Farenden@a...> on Mon, 7 Oct 2002 15:09:38 +0100
Steven,

Many Thanks for this, I shall give it a go.

Cheers
-----------------------------------------------------------------------
Paul Farenden
+44 (0)20 8267 2070

Action Images plc
Image House
Station Road
London
N17 9LR
Tel: +44 (0)20 8885 3000
Fax: +44 (0)20 8267 2067
www.actionimages.com


                                                                                                                                    
                      "Steven Van de                                                                                                
                      Weyer"                   To:       "ASPToday Discuss" <asptoday_discuss@p...>                   
                      <vandeweyer.s@p...        cc:                                                                               
                      com>                     Subject:  [asptoday_discuss] Re: Getting the date in to a drop down menu.         
                                                                                                                                    
                      07/10/02 16:11                                                                                                
                      Please respond to                                                                                             
                      "ASPToday                                                                                                     
                      Discuss"                                                                                                      
                                                                                                                                    
                                                                                                                                    




Paul,

Try something like this:

<select name="blabla">
<option value="<%=now%>">Today</option>
<option value="<%=now-1%>">Last 24 hours</option>
<!-- etc.... -->
</select>

In the next page you can use request("blabla") to compose a date using the
day() month() and year() functions.


Steven.

> Apologies for this, but I have been asked to finish off a project for a
S> ports Photographic Agency, and they need a drop down menu which has
o> ptions like 'Today' 'Last 24 hours' which when selected brings up all
the
i> mages with the relevant date in the image caption.
N> ow, I can add the date physically in to a drop down menu, but I need
help
i> n finding a solution which automates the process of changing the dates
in
a>  daily routine.
A> ny ideas will be much appreciated.
M> any Thanks
P> aul




  Return to Index