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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T05:18:44+00:00 2026-06-10T05:18:44+00:00

I am trying to send a simple ajax post request using Mootools but I’m

  • 0

I am trying to send a simple ajax post request using Mootools but I’m only receiving the error message in the title and it seems it doesn’t send the data correctly (the request gets canceled).

Here is the html:

<form id="form_5" name="form_5" action="someajaxfile.php" onsubmit="jsfunction(this,5);return false;" method="post">....</form>

And here is the javascript function called when submitted:

function jsfunction(form,eventId) {
        var container = $('form_contents' + eventId);

        form.send({
            update: container,
            evalScripts: true,
            onComplete: function() {
                container.removeClass('ajax-loading');
            }
        });

    }

I’ve tried to add stuff like headers: {'X-Request': 'JSON'}, to the send function but nothing seems to change the error. One wierd thing is tho, that in chrome under the network tab I can see two requests:

someajax.php
/somefolder
POST
302
Found
text/html
mootools.js:247
Script
354B
0B
2ms
2ms
2ms0


someajax.php
/somefolder
GET
(canceled)
Pending
http://localhost:8888/somefolder/someajax.php
Redirect
13B
0B
0ms
0.0 days

The question is: why can’t I send the data, what happens and why and it there any good solution to my problem?

  • 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-10T05:18:46+00:00Added an answer on June 10, 2026 at 5:18 am

    The question is: why can’t I send the data, what happens and why and
    it there any good solution to my problem?

    Your problem is the combination of Chrome+Local and the –allow-file-access-from-files restriction.

    To try:

    • Run those files in chrome (dev) in a ‘safe’ enviroment whith the
      command –allow-file-access-from-files
    • Run your file in another browser
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to send an ajax request using jquery. From the tutorial, I try
I am trying to send a post request through ajax to another domain and
I am trying to do a simple AJAX function to send data from query
Im trying to build a simple AJAX script that uses a form to send
I'm trying to post some very simple data to a php file using jquery
I am trying to create a simple ajax chat using JQuery and ASP.NET. My
I am trying to do a simple ajax request to load in some XML
Using $.getJSON(); or $.post(); I'm trying to send some parameters through a page that
I am trying to get send json from my javascript (using jquery post) to
I`m trying to send simple html page with form data to user with GET,

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.