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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T09:13:39+00:00 2026-06-02T09:13:39+00:00

I am using MVC3 on my project. I have a view with a bunch

  • 0

I am using MVC3 on my project.

I have a view with a bunch of DDL’s, Search Button and a Table.
User can choose values and then hit the search button and the table will show all data that got hit.

This is my jquery code for the search button click:

    $(function () {
        $('#submitfloat').click(function () {
            var SubjectTypes = $('#SubjectTypes').val();
            var Teams = $('#Teams').val();
            var Companies = $('#Companies').val();
            var Consultants = $('#Consultants').val();
            var PlannedDates = $('#PlannedDates').val();
            var CompletedDates = $('#CompletedDates').val();
            var DateTypes = $('#DateTypes').val();
            var data = {
                Subjectypes: SubjectTypes,
                Companies: Companies,
                Teams: Teams,
                Consultants: Consultants,
                PlannedDates: PlannedDates,
                CompletedDates: CompletedDates,
                DateTypes: DateTypes
            };

                $.post('@Url.Action("Search", "SearchNKI")', data, function (result) {
                    $("#GoalcardSearchResult tbody").html('');
                    result.forEach(function (goalcard) {
                        $("#GoalcardSearchResult tbody").append(
                            $('<tr/>', {
                                click: function () {
                                    // todo: redirect
                                    alert(goalcard.Id);
                                },
                                html: "<td>" + goalcard.Name + "</td><td>" + goalcard.Customer + "</td><td>" + goalcard.PlannedDate + "</td><td>" + goalcard.CompletedDate + "</td>"
                            }));
                    });
                });
                return false;
        });
    });  

This is my Controller:

 [HttpPost]
 public JsonResult Search(SearchQueryViewModel model)
 {
     var goalcard = SearchRep.FindGoalCard(model); // My LINQ

     return Json(goalcard.Select(x => new GoalCardViewModel(x)));
 }

Everything works fine but when I add my Jquery Table Sorter:

    <script type="text/javascript">
        $(document).ready(function () {
            $("#GoalcardSearchResult").tablesorter();
        }); 
    </script>

I get this wall of Json text when I click on the Search button:

![][1]

[1]:

I have no idea why this happens, when I debug my search button click jquery code its not even getting executed when I add the Table Sorter jquery code. Anyone have any idea what the cause is?

All I know is that when I add the Table Sorter, it blocks my button click jquery code from running and jumps directly to the server-side and returns json.

Thanks in advance!

  • 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-02T09:13:40+00:00Added an answer on June 2, 2026 at 9:13 am

    It was a modified Table Sorter code, with some minor changes I got it running

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

Sidebar

Related Questions

I am using MVC3 on my project. I have a view with tables and
I am using MVC3, EF Model first on my project. I have a view
I am using MVC3, EF Model first on my project. I have a view
I have a simple PartialView setup in my MVC3 Project using the Razor View
I am using MVC3-ViewModel with EF model first on my project. and the view
I have an MVC3 project I created using the Code First paradigm and it
Using MVC3, I have a Student Repository (in a project) and a StudentService (in
I`m using mustache.js on client and Nustache in ASP.NET MVC3 project. I have Person.mustache
I have a web project using asp.net mvc3. Now clients ask for a security
I have created a website using MVC3 along with the Razor view engine. What

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.