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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T18:05:19+00:00 2026-05-30T18:05:19+00:00

I recently started making web-based apps with JQTouch. In this app, when a button

  • 0

I recently started making web-based apps with JQTouch. In this app, when a button is pressed, I’m making an ajax request that gets a xml-file from my Linux server which runs Apache. When I run my app over wifi, everything is working great. When I’m over 3g and I press the button, it also loads. But when I go back and press the button again, I get an alert with error 412: precondition failed. I’ve searched on internet about this error and I found that I have to disable mod_security on my server, but that doesn’t solve the error 🙁

Here’s my ajax request:

$.ajax(
{
    type: "POST",
    cache: false,
    url: "http://draughtsonline.no-ip.org/ArtObject/catalogus/catalogus.xml",
    dataType: "xml",
    success: function(xml) 
    {
        // do stuff with the xml file
    },
    error: function(xhr, ajaxOptions, thrownError)
    {
        alert(xhr.status);
        alert(thrownError);
    },
    async: false
});

I really don’t know what’s wrong with it. Could anyone please help me?

Thanks in advance!

  • 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-30T18:05:20+00:00Added an answer on May 30, 2026 at 6:05 pm

    You can’t POST using jQuery cross-domain. It’s a security feature of JavaScript.

    An alternative is to use GET and JSONP instead of POST and XML or use a relative URL.

    More information:

    • Synchronous cross sub-domain POST request with jQuery
    • jQuery AJAX cross domain
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've just recently started programming for the iPhone and I'm making an application that
I've recently started working on a web app with a new company and found
I just recently started making apps for OSX desktops and I want to have
I recently started using Linux as my primary OS. What are the tools that
I recently started creating services layers and making declarations like: MyService myService = new
I just started Objective-C recently, and this has once again gotten me to the
Recently started programming Android Java (Eclipse), Im trying to make a simple reader app
I recently started making a month view similar to Android 4.0's Calendar View. I
Recently i started making a item container, and every time the user tries to
My wife recently started a business making soap bars and the soap labels have

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.