jSuggest (built on top of autoSuggest) is now on GitHub.

hernantz's Avatar

hernantz

07 Jan, 2012 09:51 PM

https://github.com/hernantz/jSuggest

It includes many new options and bug fixes. So check the demo and contribute to jSuggest.
Here is the demo> http://jsbin.com/asahe5/43

Regards

  1. 1 Posted by Fred on 09 Jan, 2012 03:00 PM

    Fred's Avatar

    Hello,

    Thanks a lot for your great initiative to clean the code of the previous version.
    Could you please provide an instance with an url because it used to work with autoSuggest but I have a problem to make it work with jSuggest.
    Thnaks in adavnce for your help.

    Fred

  2. 2 Posted by hernantz on 10 Jan, 2012 07:19 PM

    hernantz's Avatar

    Fred, gonna check that out at home tonight.

  3. 3 Posted by hernantz on 11 Jan, 2012 12:27 AM

    hernantz's Avatar

    hey fred, seems to be working for me...

    Did you get the code from github? Becouse, that would be the best place to get it from.

    As I did not change the data source format that autoSuggest used to work with, it may be not very use full, but just in case I will paste the php example of the output of the url:

    while($row = mysql_fetch_array($result)) {
        $json['value'] = $row['tag_id'];
        $json['name'] = $row['tag_name'];
        $json_response[] = $json;
    }
    
    // Remove duplicated tags.
    //array_unique($tags);
    
    // Build the json response and echo it.
    //$json_response['tags'] = $json;
    
    header("Content-type: application/json");
    echo json_encode($json_response);
    

    Otherwise, I would more details...

    Regads

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac