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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T00:57:56+00:00 2026-06-05T00:57:56+00:00

I am trying to change the term field that is set to that by

  • 0

I am trying to change the “term” field that is set to that by default with the jquery ui autocomplete feature. Is it possibly to easily change it to “q” (query) without going and changing it in the “core” file?

JavaScript:

<script>
    $(function() {
        $( "#spotify_song_search" ).autocomplete({
            source: "http://ws.spotify.com/search/1/track.json",
            data: { 
                q: request.term 
            },
            dataType: "getjson",
            minLength: 3,
            select: function( event, ui ) { 
                alert('select'); 
            }
        });
    });
</script> 
  • 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-06-05T00:57:57+00:00Added an answer on June 5, 2026 at 12:57 am

    Yes, it’s possible by making your own AJAX request.

    Assume you have the following setup:

    $("#myfield").autocomplete({
        source: '/my_url/myservice.xyz'
    });
    

    Autocomplete by default (as you noticed) sends requests that look like:

    myservice.xyz?term=abc"
    

    You can supply a function reference to the source option of autocomplete. Inside that function you can make your own AJAX request, which would look like this:

    $("#myfield").autocomplete({
         source: function (request, response) {
             // request.term is the term searched for.
             // response is the callback function you must call to update the autocomplete's 
             // suggestion list.
             $.ajax({
                 url: "/my_url/myservice.xyz",
                 data: { q: request.term },
                 dataType: "json",
                 success: response,
                 error: function () {
                     response([]);
                 }
             });
         });
    });
    

    This should generate a request looking more like:

    myservice.xyz?q=abc
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to change my many to many script field to use FilteredSelectMultiple
I'm trying to implement the jQuery UI autocomplete combobox so it's reusable in ASP.NET/C#.
I am currently trying to change the color of the blue horizontal line that
i am trying to implement an autocomplete combobox using jquery ui plugin. with the
Simple text field change after jquery auto complete select event. I want to split
I've got a Core Data property that I'm trying to set at runtime, with
Am trying to change text of an asp:Button using jQuery Like this $(#<%=delButton.ClientID%>).attr('text', 'InActivate');
I'm trying change an input mask for textbox when the the check box has
Am trying to change the button frame according to the orientation change but button
I´m trying to change a spring jsp example to use freemarker. I changed all

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.