Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5960721
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T18:51:56+00:00 2026-05-22T18:51:56+00:00

I downloaded this plugin: http://code.google.com/p/jquery-autocomplete/ I write this: $(document).ready(function () { $(‘#txtStoryTags’).autocomplete(‘@Url.Action(GetTags, Thread)’, {

  • 0

I downloaded this plugin:
http://code.google.com/p/jquery-autocomplete/

I write this:

    $(document).ready(function () {
    $('#txtStoryTags').autocomplete('@Url.Action("GetTags", "Thread")', { dataType: 'json',
        parse: function (data) {
            var rows = new Array();
            for (var i = 0; i < data.length; i++) {
                rows[i] = { data: data[i], value: data[i].Name, result: data[i].Name };
            }
            return rows;
        },
        formatItem: function (row) {
            return row.Name;
        },
        delay: 40,
        autofill: true,
        selectFirst: false,
        highlight: false,
        multiple: true,
        multipleSeparator: ";"
    });
});

And the Json result is:

[{"TagID":2,"Name":"tag1","Weight":4},{"TagID":4,"Name":"tag2","Weight":1},

Until this point it’s fine.
But when I try to use autocomplete I get in result:

[object Object],[object Object],[object Object],[object Object],[object Object]

Well that’s not expect result.
The question is, what’s wrong about that client script ? I’m pretty sure the problem lays here, just don’t know exactly where.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T18:51:57+00:00Added an answer on May 22, 2026 at 6:51 pm

    I’m guessing but

    formatItem: function (row) {
       return row.Name;
    },
    

    …looks wrong to me. The ‘rows’ you provide the plugin have data, value and result fields, but no Name field.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is this a technology I should spend much time evaluating? http://code.google.com/chrome/chromeframe/ Chrome Frame is
ive downloaded a treeview plugin for jquery (from http://jquery.bassistance.de/treeview/ ) and ive got a
Fairly new to jQuery, trying to use Autocomplete. Went to http://jqueryui.com/download to build my
Hi I downloaded the plugin from http://github.com/techweenie/restful-authentication.git Then I run rails generate plugin authenticated
I found this plugin for Google App Engine development that seems to be what
I just downloaded a Vim plugin for Sass syntax highlight. The instructions say: install
I'm working with the Google Groups on Knockout's forums for help with this too
Side note: This is inherited code, I didn't do any of the setup and
I am working on a website that has incorporated the jquery cycle plugin. It
I installed Jquery for Wordpress in a Wordpress page in my localhost: http://localhost/brianfunshine.com2/ Images

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.