ikhan

ikhan

Joined:
Jun 29, 2012

Activity Stream

ikhan commented on a Snippet, Triggered @mention Autocomplete like Facebook, Twitter & Google+  -  Jul 02, 2012
@Hawkee Thanks, it helped me. I've another issue, that is when I select an option from menu my text area in updated with it, like @Imran Khan and cursor is positioned after one space and then if I start typing the search is still happening and getting the suggestion for the search term "Imran khan [whatever typed by me after selection]".

How can I resolve this? My json is as shown in my last question, there is no 'label' key, instead I've 'caption'
which I'm replacing with 'label' in your code.

Thanks
 Respond  
ikhan commented on a Snippet, Triggered @mention Autocomplete like Facebook, Twitter & Google+  -  Jun 29, 2012
@Hawkee This plugin is great, I'm using it for my current project, I've got it working but not able to modify "updateHidden" function to generate the value in following format which depends on certain types(in my case there are two types ie "t":"s" and "t":"u") :

@[type:type_id|typename]

my json data is as follows:

[{"value":"imran_khan","caption":"imran khan","t":"s","s":"public","image":"/assets/images/subjects/subject_images/missing_small.png"},{"value":"imran","caption":"Imran Khan","t":"u","s":"public","image":"/assets/images/users/profile_images/missing_small.png"}]

how can I access other key:value pairs in "updateHidden" function to conditionally format the hidden input from my json data?

It would be really helpful if you or anybody on the list could suggest the solution.

Thanks

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.