Current time: 12-15-2017, 03:10 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Grouping of location dropdown
03-16-2013, 06:21 PM
Post: #1
Grouping of location dropdown
Hi Pat,

Have you given any thought to grouping of the locations by region e.g.

US
- Dulles
- San Jose
- etc.
Europe
- Amsterdam
- Dublin
- etc.

Given the current structure of locations.ini I'm guess adding a region= setting to location would be needed?

I plan to have a dabble with re-implementing locations.ini in TOML (https://github.com/mojombo/toml) - I've taken a brief look at the code that reads locations.ini but haven't got much further yet. (got other things to finish first)

Andy

Using WebPageTest - http://usingwpt.com/
Visit this user's website Find all posts by this user
Quote this message in a reply
03-19-2013, 12:57 AM
Post: #2
RE: Grouping of location dropdown
Yeah, I've considered it a bit but it's mostly an issue just for the public instance so I haven't put a whole lot of work into it, mostly because the dropdown lists don't have particularly good support for making it look better. I'll take a look again and see if things got any better.
Visit this user's website Find all posts by this user
Quote this message in a reply
03-19-2013, 03:23 AM
Post: #3
RE: Grouping of location dropdown
I reckon <optgroup> is what you need

https://developer.mozilla.org/en-US/docs...t/optgroup

(this isn't high priority for me either)

Andy

Using WebPageTest - http://usingwpt.com/
Visit this user's website Find all posts by this user
Quote this message in a reply
03-20-2013, 02:08 AM
Post: #4
RE: Grouping of location dropdown
Thanks - that did the trick. Give it a try and let me know if it looks ok.

You can add a group=blah to locations (or just the first location for any grouping) and all of the locations until the group label changes will be grouped together.
Visit this user's website Find all posts by this user
Quote this message in a reply
03-20-2013, 02:17 AM
Post: #5
RE: Grouping of location dropdown
Thanks, it looks great!

Andy

Using WebPageTest - http://usingwpt.com/
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)