iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-22-2007, 02:06 AM
WebProWorld Pro
 
Join Date: Jul 2003
Location: Canada
Posts: 272
ackerley1 RepRank 0
Default State/Province Jump Order

How do I configure a drop down list of States and Provinces to run through the US states first before the Canadian provinces when people are pressing the first letter.

Example:

Person presses 'A'
Order they appear now: Alberta, Alabama, Arkansas.

Order I want them to appear: Alabama Arkansas, Alberta

Is this achieved with Javascript or PHP?

Thanks

Rob
__________________
Rob
Reply With Quote
  #2 (permalink)  
Old 06-22-2007, 06:38 PM
puamana's Avatar
WebProWorld Member
 
Join Date: Sep 2006
Location: Medford, OR
Posts: 65
puamana RepRank 0
Default Re: State/Province Jump Order

If the form element is written with html,
simply open up the page in a text editor and change
the order of the listing of options.
Need an example?
Reply With Quote
  #3 (permalink)  
Old 06-22-2007, 06:39 PM
puamana's Avatar
WebProWorld Member
 
Join Date: Sep 2006
Location: Medford, OR
Posts: 65
puamana RepRank 0
Default Re: State/Province Jump Order

If using a javascript/dhtml menu, in a text editor,
change the order of the listing in the array.
Reply With Quote
  #4 (permalink)  
Old 06-22-2007, 07:17 PM
southplatte's Avatar
WebProWorld Veteran
 
Join Date: Jul 2003
Location: Colorado
Posts: 358
southplatte RepRank 1
Default Re: State/Province Jump Order

I would do it a bit differently myself - I would have them select their country first, then only provide the States for the US if that is what they chose and then only provide the Provinces for Canada if that is what they chose. Then, they get only the options they need, and you get two fields coming in for your data to further refine it by.
Reply With Quote
  #5 (permalink)  
Old 06-22-2007, 07:34 PM
WebProWorld Member
 
Join Date: Jan 2006
Location: Sydney Australia
Posts: 60
Christiaan RepRank 1
Default Re: State/Province Jump Order

Maybe the following could inspire you:

Script Name: Multi-Value Drop-Down List
Website URL: The JavaScript Source: Forms : Multi-Value Drop-Down List
__________________
Chris
There is no failure until you give up.
Reply With Quote
  #6 (permalink)  
Old 06-23-2007, 10:27 AM
DaveSawers's Avatar
WebProWorld Veteran
 
Join Date: Dec 2006
Location: Calgary, Alberta, Canada
Posts: 492
DaveSawers RepRank 3DaveSawers RepRank 3
Default Re: State/Province Jump Order

I think it's quite right and proper that Alberta should come before any US states and you should leave it as it is.

By the way, why have you missed out Alaska? Got some problem with the north?

__________________
Dynamic Software Development
www.activeminds.ca
Reply With Quote
  #7 (permalink)  
Old 06-23-2007, 02:06 PM
incrediblehelp's Avatar
WebProWorld 1,000+ Club
WebProWorld MVP
 
Join Date: Jan 2004
Location: Live in Cincy Now
Posts: 7,573
incrediblehelp RepRank 4incrediblehelp RepRank 4incrediblehelp RepRank 4incrediblehelp RepRank 4incrediblehelp RepRank 4
Default Re: State/Province Jump Order

Just beware if you do it in JS then you will have isues with the SE trying to spider the links.
Reply With Quote
  #8 (permalink)  
Old 06-23-2007, 10:06 PM
WebProWorld New Member
 
Join Date: Apr 2005
Posts: 18
lanthus RepRank 0
Default Re: State/Province Jump Order

'They've basically all said it,-- But I suggest, Combine it:

Your 'List' in DHTML ("Dynamic HTML"), in the order you want, And--

Enhance it in javascript/jscript(MSIE sup'ed-up) ... 'id' the HTML-object and script it ...

Hance for example, 2-letter select the State/Province/Territory/...--[*]

Check a Secretary's Handbook for the USPS-standard 2-letter codes.

* [sample codesnip: <SELECT id=souvereignList onkeydown=enhanceselection() ...>]

Ray.

PS. incrediblehelp ... so green, you look more-like incrediblehulp...!
__________________
Mr. Raymond Kenneth Petry
Lanthus Corporation

Last edited by lanthus; 06-23-2007 at 10:08 PM. Reason: the linespacing didn't before "["
Reply With Quote
  #9 (permalink)  
Old 06-27-2007, 01:06 AM
WebProWorld Pro
 
Join Date: Jul 2003
Location: Canada
Posts: 272
ackerley1 RepRank 0
Default Re: State/Province Jump Order

What if it is drawn from a database?

What is the best method for that?
__________________
Rob
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Yow. Don't Jump the Shark, Google WPW_Feedbot Search Engine Optimization Forum 0 12-16-2005 06:30 PM
Taiwan Not Happy With Being A Chinese "Province" In Google WPW_Feedbot Search Engine Optimization Forum 0 10-04-2005 08:30 AM
Why not jump in,,, freehits Member Photos 5 08-24-2005 09:24 PM
Jump Shark, Jump! WPW_Feedbot Search Engine Optimization Forum 0 03-31-2005 03:30 PM
Jump from 600 to 19 today Niels Google Discussion Forum 1 02-22-2004 12:08 PM


All times are GMT -4. The time now is 12:37 AM.



Search Engine Optimization by vBSEO 3.3.0