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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T16:05:31+00:00 2026-06-16T16:05:31+00:00

I have some jQuery post code that throws a not found error when I

  • 0

I have some jQuery post code that throws a not found error when I try and run it. I am trying to run it as part of my wordpress plugin, I know the files are in the same directory but and it is spelt correctly. I have tried accessing the file directly from url and adding that url to the plugin but I then get error 500.

From the research I have done I think there is something I have to do to add this file in my plugin, I think it has something to do with it not being in the wordpress framework but I cant find any solutions to my issue.

jQuery.post("getResults.php", {id:id} , function(data)
        {
            jQuery("select#kDate").removeAttr("disabled");
            jQuery("select#kDate").html(data);
        })
        .success(function() { alert("second success"); })
        .error(function(xhr, status, detail) { alert("error ("+status+") : " + detail); })
     });

Any help would be appreciated.

  • 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-16T16:05:32+00:00Added an answer on June 16, 2026 at 4:05 pm

    This code works by using the full url of the file if you get an error 500 internal server error try changing your permissions, as that worked for me. This code is for wordpress.

    jQuery.post("<?php echo plugins_url("/race-results/getResults.php"); ?>", {id:id} , function(data)
            {
                jQuery("select#kDate").removeAttr("disabled");
                jQuery("select#kDate").html(data);
            })
            .success(function() { alert("success"); })
            .error(function(xhr, status, detail) { alert("error ("+status+") : " + detail); })
         });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some jquery code that is doing an ajax lookup and returning comma
I have some jQuery code that highlights a link when clicked, and changes the
I have some jquery code which I am trying to translate to YUI. I
I have some jQuery code that intercepts links clicked on a page: $(document).ready(function() {
The thing I'm trying to have is a JQuery/JavaScript code that will automatically pass
I have some jQuery code that commits an action on the screen. However as
I have some jQuery that looks like this: $.ajax({ type: POST, url: /Customer/CancelSubscription/<%= Model.Customer.Id
I'm trying to put together some jQuery code that will add form elements (input
I have some JQuery code that converts all HTML elements of a specific class
I have inherited some code that will eventually be part of an API call.

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.