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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T22:30:56+00:00 2026-05-13T22:30:56+00:00

I’m attempting to fire off a JQuery .get() to a MVC (2 rc 2)

  • 0

I’m attempting to fire off a JQuery .get() to a MVC (2 rc 2) controller. I can see the JS function call happen, then when the .get() is called it never comes back.

(1) It would be great to know what I’m doing wrong to fix the immediate problem

(2) It would also be great to have an education on what to do for debugging these async requests clientside… what would the next step be to track what is happening when .get() fires?

the JQuery:

function getWeather() {
    var URL = "/Home/GetData/3"
    $.get(URL, function (data) { $("#Result").html(data); });
}

should be calling my calling my HomeController GetData() method with the arg ‘3’. here is my HomeController GetData method… I never see a breakpoint set here get hit, so whatever I’m doing in the method is so far irrelevant…it’s not getting called.

[HandleError]
public class HomeController : Controller
{
    public ActionResult GetData(Int32 i)
    {
        Response.Write("<h1>data</h1>");
        return null;
    }
}
  • 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-13T22:30:56+00:00Added an answer on May 13, 2026 at 10:30 pm

    Use FireBug to see if an asynchronous request is sent to the server and what does the server respond. Also change your controller action to:

    public ActionResult GetData(Int32 i)
    {
        return Content("<h1>data</h1>", "text/html");
    }
    

    Also you forgot to put a ; at the and of your URL javascript variable declaration.

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

Sidebar

Related Questions

No related questions found

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.