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

  • Home
  • SEARCH
  • 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 4322330
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T08:51:35+00:00 2026-05-21T08:51:35+00:00

I have a jQuery autoselect box displaying the correct data. Now I would like

  • 0

I have a jQuery autoselect box displaying the correct data. Now I would like to fire an ASP.NET MVC 3 controller when an item is selected. The controller should then redirect to a View. Here’s my jQuery autocomplete code (I’m sure something is missing in the 2nd Ajax call, but I haven’t found it yet):

<script type="text/javascript">
    $(function () {
        $("#Client").autocomplete({
            source: function (request, response) {
                $.ajax({
                    url: 'Entity/GetClientAutoComplete', type: 'POST', dataType: 'json',
                    data: { query: request.term },
                    success: function (data) {
                        response($.map(data, function (item) {
                            return { label: item, value: item };
                        }))
                    }
                })
            },
            minLength: 1,
            select: function (event, ui) {
                $.ajax({
                    url: 'Entity/GetApplicationsByName/' + ui.item.value, type: 'POST'
                })
            }
        });
    });
    </script>

And here’s the controller I’m trying to call:

 public ActionResult GetApplicationsByName(string id)
        {
            ViewBag.Client = id;
            var apps = _service.GetDashboardByName(id);
            return View("Dashboard", apps.ToList());
        }

When I watch the Ajax call fire in Firebug, I see the correct URL configuration, but nothing else happens. It’s acting as though it wants to load something rather than send something. I’m confused. Thank you for any guidance.

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

    Well you sent an id by POST to the GetApplicationsByName controller and the controller is sending back the view.

    If you want redirection, you can use the following:

    select: function (event, ui) {
        window.location.href = 'Entity/GetApplicationsByName/' + ui.item.value;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have jQuery based template from themeforest and i building on this ASP.NET Web
I have jquery grabbing an id from something else (image) and I would like
I have many Javascript or jQuery methods in my ASP.net project. 85%+ is client
I have jQuery dialog working with my custom theme. I would like to use
I have jQuery UI dialog with ASP.NET. I wrap a list of check boxes
I have jQuery code which looks something like this on Button1 Click $('table.result_grid tbody
I have JQuery dialog box for inserting new row in table. And everything works
i have jquery accordion script like this.. <script type='text/javascript'> $(document).ready(function() { $('div.Syb> div').hide(); $('div.Syb>
I have jQuery code like this workig fine in FF, but totally fails in
i have jquery code that loop through all checkboxes. $('input[type=checkbox]').each(function () { I now

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.