My wants shift with the wind.
Apr. 27th, 2011 05:39 pmWhat I want today:
I have a table with companies in it.
I want an AJAXy sort of thing, that has a search box for each field I give a shit about. I can enter, for example, "Shef" in the Name field and "Palm" in the City field, and get both Sheffield Company in Palm Springs, and also Sheffield Corporation in Palm Beach, listed.
I want then to be able to select one of the entries. Though I can live with just searching enough until there's only one. From the results, I need the company's ID, so that I can use it in a form on the page.
...and yet, I know cock-all about AJAX.
Halp?
I have a table with companies in it.
I want an AJAXy sort of thing, that has a search box for each field I give a shit about. I can enter, for example, "Shef" in the Name field and "Palm" in the City field, and get both Sheffield Company in Palm Springs, and also Sheffield Corporation in Palm Beach, listed.
I want then to be able to select one of the entries. Though I can live with just searching enough until there's only one. From the results, I need the company's ID, so that I can use it in a form on the page.
...and yet, I know cock-all about AJAX.
Halp?
(no subject)
Date: 2011-04-28 12:51 am (UTC)Do the entire table inside a form, and add an additional radio button as the first column:
>td>>label>>input type="radio" name="select" value="'.$id.'">>/label>>/td>
and close out the table, add a submit button, and close out the form. Lets the person pick a single line that they want to edit. If you want to do multiples on one page (instead of reloading with new form using company ID), then use the form-submit.js script -- I think it's from DHTMLgoodies, actually. It's proven to be really reliable and sturdy; comes with a minimized ajax.js. Whatever you choose in the first form, upon submission, will reload a designated area with a new form or associated/searched info, or whatever.
Not sure if that helps, but that's the low-grade workaround I came up with.
(no subject)
Date: 2011-04-28 01:27 am (UTC)(no subject)
Date: 2011-04-28 02:50 pm (UTC)