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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:55:59+00:00 2026-05-23T01:55:59+00:00

My $.ajax success function never triggers. I just want to execute a PHP file

  • 0

My $.ajax success function never triggers. I just want to execute a PHP file without passing and getting ANY values. I am using another way of reading values, but it can’t be run since the function needs to be put in the $.ajax success function, which does not work.

Code:

$(document).ready
(
    function()
    {
        var interval;

        function ajaxify()
        {
            $.ajax
            (
                {
                    url:"http://localhost/twitter/redirectFollow.php",
                    success:function()
                    {
                        $("#resultPara").prepend("test123"); // This does not trigger
                    }
                }
            );  //  End $.ajax
        }   //  End ajaxify

        $("#buttonClick").click
        (
            function()
            {
                ajaxify();
            }
        );  //  End buttonClick
    }
);
  • 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-23T01:56:00+00:00Added an answer on May 23, 2026 at 1:56 am

    Use Firebug or equivalent tool to ensure the request is being made successfully and that you are receiving a response.

    My guess would be that since you are specifying an absolute url, the request is being seen as a cross-domain request. If the script you are requesting resides on the same domain the javascript is on, shorten the url to /twitter/redirectFollow.php, otherwise you will have to use a data-type of JSONP. See docs

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

Sidebar

Related Questions

I tried to just send some information to a php file using Jquery Ajax.
I have $.ajax({ url: identity, success: function(data) { ProcessIdentityServer(data) } }); When 'data' is
I am trying to function doRow(rowNum) { $.ajax({ url: z.html, cache: false, success: function(html){
I have a simple ajax call: $.ajax({url: my_url_here, dataType: 'text', success: function(data, textStatus) {
I have some code that does this: function A(){ $.ajax({ ...blah blah... success: function(data){
I never had such a problem and I'm pretty puzzled: function delete_post(id) { var
Ajax , Flex and Silverlight are a few ways to make more interactive web
Problem: Ajax suggest-search on [ n ] ingredients in recipes. That is: match recipes
In AJAX applications that need to poll the server in regular intervals (like a
I'm writing an AJAX app, but as the user moves through the app, I'd

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.