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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T21:21:24+00:00 2026-05-24T21:21:24+00:00

I am having trouble because my MooTools AJAX request doesn’t find my PHP script

  • 0

I am having trouble because my MooTools AJAX request doesn’t find my PHP script URL request. First I have an index.php which loads in ControllerList.php (List files and delete each one), then in that script, I have this MooTools script for calling controllerDelete.

There is the problem because It says:

404: The requested URL /Files/ControladorDelete.php was not found on this server.

This is the structure of my project:

http://imageshack.us/photo/my-images/717/imagen1nvj.png/

This is my MooTools script:

window.addEvent('domready', function() {

  $$('a.div').addEvent('click', function(e) {

    e.stop();
    var id_file = this.get('id');
    var new = id_file.split('#');  

    var DeleteFile = new Request({
      method: 'POST',
      url: 'ControllerDelete.php?id_file='+new[1]+'&name='+new[0], ERROR 
      onRequest: function() {},
      onSuccess: function() {
      },
      onFailure: function(){alert('Error!');}
    }).send();

  });
});

The request keeps giving me error. Thanks for your help

I already changed to URL: Controler/ControllerDelete.php but Its the same and I don’t know how to fix it.

  • 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-24T21:21:25+00:00Added an answer on May 24, 2026 at 9:21 pm

    One look at your folder tree tells me that you need to form your URL like this:

    url: 'Source%20Files/Controller/ControllerDelete.php?id_file='+new[1]+'&name='+new[0],
    

    To fix your error.

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

Sidebar

Related Questions

I have been having a ton of trouble because I have forgotten all of
I'm having trouble collecting the response from a web request i do. (Because i'm
I have a minor CSS problem, but I'm having trouble fixing it because I
I`m having trouble trying to optimize this query with OVER (PARTITION BY ...) because
Having Trouble with Entity Framework. I have been populating EntityReferences with an EntityKey inorder
I having trouble in dividing the HTML frames. I have been using the following
I am having trouble with IE7. I have a header, which is an IMG.
I've been having trouble searching for this answer because I am not quite sure
I'm having trouble reading rows with float values, because these rows return for example
I'm using mootools-1.2.3 at the moment and I'm having trouble getting a variable to

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.