How to : Display table and select a cell to return value from a div
Posted on 2011-10-16
I am hoping someone can help me with how to accomplish this. I am a beginner with this stuff so please be patient.
I have cobbled together a web app for displaying client information using ajax. When I locate a client by a unique id like contract_no everything works fine. On the server side I put the returned info into an xml file and then convert it into a table for display in a div. It works exactly as I need it to. (thanks to help from here!) My problem is when my search criteria is last_name I may have multiple records I need to select from.
What I need to do is take the returned records (choices), populate a table and show it to my user in what would be a, I guess, hidden div or popup. (I have been playing with tinybox for days with no luck) I need them to be able to select the cell that contains, lets say the correct john smith, and then run my selection function again with that contract_no and then close the div-popup- or whatever.
Any help on how to achieve this would be greatly appreciated.