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 318081
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T08:32:12+00:00 2026-05-12T08:32:12+00:00

jQuery v1.2.6 jQuery.autocompleter plugin v1.1pre (from jQuery’s website) I am not able to submit

  • 0

jQuery v1.2.6

jQuery.autocompleter plugin v1.1pre (from jQuery’s website)

I am not able to submit with ‘type: “POST”‘ back to my webservice. I can’t get it to be recognized by the autocompleter. Thoughts?

This code below works fine, as long as I look for the “q” querystring. But, I would like to use this for more advanced features in the future by passing more params, and would appreciate how to post back using the autocompleter.

I am aware of the extraParams option. But, those are extra parameters that get submitted via GET or POST (if we can get POST working). It doesn’t change it to submit as a POST.

$(function() {
    $('#searchBox').autocomplete(
        "/services/college.asmx/lookupColleges",
        {
            delay: 5,
            minChars: 1,
            matchSubset: 1,
            matchContains: 1,
            cacheLength: 10,
            autoFill: false,
            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].Data
                        , result: data[i].Name
                    };
                }
                return rows;
            },
            formatItem: function(row, i, n) {
                return row.Name;
            }
        }).result(function(event, row) {
            processSelection(this, row.Data);
        });
});

I tried adding the option for POST, like noted in the code sample below. But it still submits as a GET.

delay: 5,
minChars: 1,
matchSubset: 1,
matchContains: 1,
cacheLength: 10,
autoFill: false,
dataType: 'json',
type: 'POST',

Any help is appreciated.

Thank you!

PS, lots of this is undocumented, and was a PITA to figure out after trial and error. Thank goodness for Firebug.

You’ll note that I am:

  • receiving JSON back from the webservice
  • the Autocomplete is not able to handle JSON natively, so I have to parse it into my own array.
  • Since I am now passing back a custom array object, the formatItem needs to be overwritten in order to process the new array object for Displaying purposes.
  • And finally the money shot, I am wanting to process the extra data on that row after the user selects a Row (mouse-click or TAB or ENTER key). I do this with the result() delegate.

I really hope the above code helps others in the future figure out the autocompleter as well as it all required reverse engineering.

Tip: The property names data[i].Data and data[i].Name are the JSON property names.

  • 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-12T08:32:12+00:00Added an answer on May 12, 2026 at 8:32 am

    At this time (Autocompleter 1.1pre), there isn’t a way to get it to post without changing the plugin’s code.

    I just left it submitting querystrings for now. Thank you all for answered, I upped the vote.

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

Sidebar

Related Questions

I'm using the jQuery Autocomplete plugin from http://docs.jquery.com/Plugins/Autocomplete on IE7 and it's not releasing
I'm using the Struts2 jQuery plugin 2.1 and render an autocompleter in my JSP.
jQuery autocomplete plugin shows results that begin with the query you type into a
I'm using the jquery autocomplete plugin from pengoworks: http://www.pengoworks.com/workshop/jquery/autocomplete_docs.txt In the function called upon
I'm using Jquery Autocomplete based on: http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/ . I am able to select a
I'm using the jQuery AutoComplete plugin combined with ajax. Do you know how can
I'm trying to pass 2 parameters from JQuery's Autocomplete plugin to an ASP.Net MVC2
I'm using jQuery Autocomplete plugin 1.1 now, not the one included in jQuery UI.
I'm using the jQuery autocomplete plugin to get a list of locations, which works
I'm struggling with the following problem. I use the jQuery autocomplete plugin to get

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.