I have an HTML page that acts as a phone directory for departments. I want users to be able to click on a department button and the script looks for that department in a SharePoint list to display each column.
So far what I have I can't seem to pull the correct data. I think I'm having trouble with the GetListItems section. The side buttons are a simple CSS 'tabs' hidden/unhide IDs. I don't think they're affecting the script.
Here is the page code:
I know the script works because I've used it for another application, I just can't figure out the part to display it in the section. I'm pretty sure my issue has something to do with the way it's stored in the variables, but also the way it uses IDs, since I believe you can only have one ID (right?), this won't work because each department uses the same ID.
Also, more obviously, I'm missing the crucial part where it knows which item to pull the rest of the columns from. I don't even know where to start searching for this information. Something like:
if title = label then ...get the rest of the columns
just before it runs the SPServices part.
I'm sorry I know I'm a bit over my head here and I'm not giving you much to work on, but any help or tips would be great.