Atomic Taco wrote:
And a couple of ideas to solve the complains above, I'll write psudocode because I'm lazy
Basically when anything other than "for one frequency" or "for text" gets displayed, the text box is hidden. And then when "for one frequency" or "for text" it reappears.
You are asking for dynamic drawing from a static page. This would likely require client-size java(script). I try to minimize on this as most mobile browsers don't support it.
Atomic Taco wrote:
And then to solve the default search value, cookies would work. Just store the last country/state/county in a cookie, then the next time that person loads the page it defaults to the last search they did (much like if they hit the back button). I'd write psudocode for that, but I haven't worked with cookies in PHP for a long time so I have no idea what it's like. All I remember is $_COOKIE["some_var"];
Cookies are simple enough to do, just haven't had anybody ask for it. It could potentially prevent the dropdown boxes from displaying their options which is an unfortunate side-effect of forcing a default value on a dynamic box. Further complicating things are some annoying variations on how this is handled by Firefox as compared to IE.
Atomic Taco wrote:
And the sorting doesn't seem to sort.
Example shows "T 1616" "T 1936" "T 3152" when I expected "T 1616" "T 1648" "T 1680"
oh it sorts just fine. You just aren't seeing the embedded spaces. The question is whether you want to use embedded spaces to force the output you want. Not using embedded spaces will give you T 1, T 10, T 1000000, T 2, T 3, etc. Using embedded spaces will give you a sequential output as its a text-based sort rather than numeric. Of course we could always pad talkgroups with leading zeros instead but then the readability tends to get a little annoying.