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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T05:46:48+00:00 2026-05-29T05:46:48+00:00

I have the below jQuery code: $(document).ready(function () { $(‘#ajaxButton’).click(function () { $.ajax({ url:

  • 0

I have the below jQuery code:

$(document).ready(function ()
{
    $('#ajaxButton').click(function ()
    {
        $.ajax({
            url: 'ajax/getsomestring',
            type: 'GET',
            success: function (data)
            {
                alert('test');
            }
        });
    });
})

On the button click, I want to do an AJAX call. On my server-side, I do have an action method GetSomeString(), which returns a string. I’m just testing to make sure the AJAX request is successful by a simple alert(). But for some reason, Firebug is giving me the error:

s is undefined

What am I doing wrong here?

Edit:

In Firebug, the error is actually referenced in the jquery-1.5.1-vsdocs.js script (like 7320). Obviously I didn’t write that code, nor do I think that’s the problem. I only get this error when I use my $.ajax() call.

  • 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-29T05:46:49+00:00Added an answer on May 29, 2026 at 5:46 am

    The issue was actually with the jquery-1.5.1-vsdocs.js JavaScript file. For some reason, it was throwing the above error in the $.ajax() call. Once I took the script reference out, and it didn’t get loaded the AJAX request worked.

    Any ideas or theories as to why this caused the issue would be much appreciated. But the removal of it fixed the code.

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

Sidebar

Related Questions

i have this jQuery-AJAX code below and a form: <script type=text/javascript> $(document).ready(function () {
I have the below code in my jqgrid <script type=text/javascript> jQuery(document).ready(function() { var grid
I have below code in Jquery $(document).ready(function() { // bind to cells with an
Currently I have the below jQuery which uses the colorbox plugin http://colorpowered.com/colorbox/ $(document).ready(function(){ $(.altbgcolor).hover(function()
http://jsfiddle.net/yrM3H/2/ I have the following code: jQuery(document).ready(function() { jQuery(.toggle).next(.hidden).hide(); jQuery(.toggle).click(function() { $('.active').toggleClass('active').next('.hidden').slideToggle(300); $(this).toggleClass('active').next().slideToggle(fast); });
I have this javascript code below that uses jquery, it is suppoed to be
The below code is very simple. I have a jQuery autocomplete bound to an
I am getting JQUERY undefined error. Do you have any idea (code below). <%@
I have below html code in my aspx. <input type=hidden id=medicalLink value='<a href=/forms/contactus.aspx >Contact
I have an issue with this jquery code below. Please give me advice or

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.