Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - dropdown comparisons
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

dropdown comparisons

 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: dropdown comparisons
    Posted: 06 October 2003 at 10:29am

I have 2 dynamically created dropdown lists which are regions and officers.

i wish to compare the region selected to the region the officer is assigned to (onChange of officer), and if the region is not the same as the officer region then throw a warning...

Basically HOW do i capture the contents of the rs's chosen in the dropdowns  to compare them?

tbl_regions: id;region_name;active_indr;

tbl_officerinfo: id;officer_lname;officer_fname;officer_region;

Back to Top
KCWebMonkey View Drop Down
Senior Member
Senior Member
Avatar
Go Chiefs!

Joined: 21 June 2002
Status: Offline
Points: 1319
Post Options Post Options   Thanks (0) Thanks(0)   Quote KCWebMonkey Quote  Post ReplyReply Direct Link To This Post Posted: 06 October 2003 at 11:12am
with javascript
Back to Top
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 Posted: 06 October 2003 at 12:25pm

yes yes... more so the coding... i understand the idea

I just have no idea about the code!

thanks though

Back to Top
Gary View Drop Down
Senior Member
Senior Member
Avatar

Joined: 20 March 2002
Location: United Kingdom
Status: Offline
Points: 326
Post Options Post Options   Thanks (0) Thanks(0)   Quote Gary Quote  Post ReplyReply Direct Link To This Post Posted: 08 October 2003 at 2:31am

Alternatively, you could post the page back onto itself when the region is selected.

When the page loads, check to see if the Region form data is available - if yes, then dynamically build an sql string to select the associated officers.

Sorry, but I dont have the code.

Back to Top
MorningZ View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 May 2002
Location: United States
Status: Offline
Points: 1793
Post Options Post Options   Thanks (0) Thanks(0)   Quote MorningZ Quote  Post ReplyReply Direct Link To This Post Posted: 08 October 2003 at 9:44am
got a URL to the page with the dropdowns so we could get more of an idea of what you need?
Contribute to the working anarchy we fondly call the Internet
Back to Top
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 Posted: 08 October 2003 at 10:04am

no, it is local at the moment

the problem is that it has a lot of info to be put in it and to repost it/refresh it would lose all the info..

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.