So let's say there are 3 people using this system: David, John, and
Ben.  Each of us has an entry in the users table in the database and
each of us has a user ID from that table.  When I start a post, I can
start to type John's name and select it from the dropdown list
(Facelist adds the highlighting and X to remove the name as well).
Then I can start to type Ben's name and his name shows up in the
dropdown list.  Fantastic.  So in the form, Facelist does the
translation (based on a PHP array with name as the key and ID as the
value) so when you submit the Facelist input, it submits the numerical
IDs, so my POST variable is 1,2,3 which is exactly how it's stored in
the database table of posts.  Now, if I've written the post ahead of
time with John and Ben, I can just add their names, copy and paste the
post, and send it to the site.  Perfect.  However, if I start writing
it and want to save it so John and Ben can add to it, it works fine
until one of them goes in to edit it.  Then, the list of authors is
blank because I can't pass the string (1,2,3) to that input and have
the Javascript go through that and say "Oh hey, this is ID 1, so I'm
going to print David's name here instead of the number 1."  That means
that you can't ever add or remove any of the authors with the Facelist
plugin.  Does that help explain it a little more?

What I'm wondering, is if there are any plugins out there that will do
this kind of thing.  Is there a direction I should be moving/looking?
Are there some plugins I can string together to make this work?  Any
help would be amazing!


David

On Dec 30, 1:59 pm, Fontzter <[email protected]> wrote:
> David,
>
> I'm not following completely when you say "I want to be able to pass a
> numerical string to the script
> and have it translate those ID numbers to the matching name and spit
> them out like when you have a completed autocomplete string."  Can you
> elaborate?  Are you trying to filter your auto-complete candidates
> based on an id number?  If so, could you do this server-side?
>
> Dave
>
> On Dec 29, 10:34 am, "[email protected]"
>
> <[email protected]> wrote:
> > Question of the hour I guess.  The idea of what I'm looking for seems
> > pretty simple, but I can't seem to find anything that does
> > everything.  If someone can point me in the right direction, I'd be
> > incredibly grateful.
>
> > I have a project where registered members can write posts with other
> > registered members.  There is no limit to how many members they can
> > write posts with.  They can write the initial post, save it, and have
> > others chime in and put their own two cents into the post before it's
> > put out to the site.  Simple enough, right?  My first stab at this
> > used select menus for each author.  Again, pretty easy, but I'm
> > looking for something like Facebook's autocomplete feature (emulated
> > in Facelist) to simplify things.  Facelist does it beautifully, even
> > returning a numerical ID which is exactly what I need.  Now, where it
> > gets tricky is when a post is saved and someone else pulls it up.  I
> > want to be able to use something like Facelist with the clean
> > interface for the authors with the ability to add and remove authors
> > easily, but I want to be able to pass a numerical string to the script
> > and have it translate those ID numbers to the matching name and spit
> > them out like when you have a completed autocomplete string.
>
> > I'm not married to any one plugin either.  I've started with Facelist,
> > but Autobox does similar things.  Does anyone have suggestions for
> > places I can start looking and plugins I can start working with?  Any
> > questions, please let me know!
>
> > David
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to