Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
09-07-2010, 07:11 PM #1
- Join Date
- Sep 2010
- Thanked 0 Times in 0 Posts
Display Alphabetically only one letter at a time
I want to display my listings like they do here: http://www.ticketnetwork.com/performers/concerts/a.aspx
The code on my end calling the third party service looks like this:
How do I make it only display one letter at a time? I believe some variation on the sort method might work...
09-07-2010, 07:49 PM #2
They are doing it by actually having separate pages for each letter.
Didn't you notice that the page changes from "a.aspx" to "b.aspx" (etc.) as you change letters?
*IF* your list of *ALL* events/letters isn't too long, then doing it in JS code is pretty trivial. You'd just put each letter into a separate "panel" and then activate one panel at a time.
Instead of using document.write, it would probably make more sense to use XMLHTTP in synchronous mode (that is, SJAX as opposed to AJAX) to get the contents, put them in your JS array, sort the array, and *THEN* create the panels.
If you showed us an example of what that "feed" sends to you, it would be easier to help.
Be yourself. No one else is as qualified.