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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T15:17:44+00:00 2026-06-14T15:17:44+00:00

The ajax call below is not going through. The function simply quits and neither

  • 0

The ajax call below is not going through. The function simply quits and neither of the alert messages below are shown. Any ideas why? I have placed a separate alert within the click function above the ajax call and it shows that the function is being called properly. This is my first time to use the jquery ajax and I am having a rough go of it.

I have soo many questions and I see so many different things. I see people with and without the .php on the url name. I see people with and without quotes on the data and around the url. Does anyone know the propor convention?
Thanks.

$(document).ready(function() {
    $(".folderopen a").click(function(event) {
        e.preventDefault();        
        $.ajax ({
        type:'GET',
            url:'FolderOpen.php',
            data: {userid:10},
            success: function() {    alert('success');},
            error: function(){       alert('failure');}
            });  

    });
});
  • 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-14T15:17:45+00:00Added an answer on June 14, 2026 at 3:17 pm

    try use this code :

    $.ajax({
                    type: "GET",
                    url: "FolderOpen.php",
                    data: {userid:10},
                    contentType: "application/json; charset=utf-8",
                    dataType: "json",
                    success: function (data) {
                        alert('success');
                    },
                    error: function () {
                        alert('error');
                    }
                });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I did ajax call and got response in callback function like below: var v=;
I am using the below jquery code to call a ajax function in my
My ajax call is as below <script type=text/javascript> function calling() { var user =
Within my ajax call if an error is received I have an alert :
I'm wondering why my code is not updating the the ajax call when I
I have an ajax call as below: $.ajax({ type: GET, url: process.php, data: dataString,
I use the code below from one Stackoverflow answer to abort AJAX call in
I am getting strange behavior, below is the jquery ajax call to my page.
I have 3 ajax call in one function and checkAjaxCompletion which checks each ajax
The HTML below is injected into my site on an ajax call, but the

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.