Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - menu population
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

menu population

 Post Reply Post Reply
Author
yessir View Drop Down
Newbie
Newbie


Joined: 02 October 2003
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote yessir Quote  Post ReplyReply Direct Link To This Post Topic: menu population
    Posted: 02 October 2003 at 6:51am

I am TRYING 2 things here,
1) to have the referred to menu be based on the region menu, ie: if menu region=central then menu referred to is limited to officer_region=central
2) show the first AND last names of officers in the table in the menu referred to

can someone please look at this and make it possible?

<table width="90%" border="1" cellspacing="0" cellpadding="1" bgcolor="#CCCCCC">
<tr>

<td width="20%" bgcolor="#006699"><font color="#FFFFFF"><font face="Tahoma" size="1">Region</font> </font></td> ;

<td width="30%" bgcolor="#F5F5F5"><font face="Tahoma" size="1">
<select name="x_region" size="1">
<%While (NOT rsRegion.EOF)%>
<option value="<%=(rsRegion.Fields.Item("region_name").Value)%> ;"><%=(rsRegion.Fields.Item("region_name").Value)%> </option>
<% rsRegion.MoveNext()
Wend
If (rsRegion.CursorType > 0) Then
rsRegion.MoveFirst
Else
rsRegion.Requery
End If
%>
</select>
</font>
</td>


<td width="25%" bgcolor="#006699"><font color="#FFFFFF"><font face="Tahoma" size="1">Referred to</font> </font></td>

<td width="25%" bgcolor="#F5F5F5"><font face="Tahoma" size="1"> 
<select name="x_referred" size="1">
<%While (NOT rsOfficers.EOF)%>
<option value="<%=(rsOfficers.Fields.Item("last_name").Value) %>"><%=(rsOfficers.Fields.Item("last_name").Value)% ></option>
<%
rsOfficers.MoveNext()
Wend
If (rsOfficers.CursorType > 0) Then
rsOfficers.MoveFirst
Else
rsOfficers.Requery
End If
%>
</select>
</font>
</td>
</tr>
</table>

Back to Top
fernan82 View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 17 November 2002
Location: United States
Status: Offline
Points: 362
Post Options Post Options   Thanks (0) Thanks(0)   Quote fernan82 Quote  Post ReplyReply Direct Link To This Post Posted: 03 October 2003 at 9:24pm

You gotta program the page to show the refered, first, and last name options based on the querystring, ie. if you name your page page.asp then program it so that page.asp?region=central will display the options (refered, first, and last name) only for central region, then make the region drop-down menu redirect you to page.asp?region=central when you select central, etc...

There MIGHT be a way to do it with JavaScript without having to refresh but if there is one I don't know how to do it

FeRnAN
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.