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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:39:29+00:00 2026-05-25T15:39:29+00:00

I m using AJAX to get a PHP file from another domain name. In

  • 0

I m using AJAX to get a PHP file from another domain name.

In fact the domain where I have installed the jQuery function does not support the PHP send mail function, so I had to use an external web server to send the emails out.

This is what I have done with jQuery:

if(hasError == false) {

        var referenteVal = $("#referente").val();
        var cittaVal = $("#citta").val();
        var provinciaVal = $("#provincia").val();
        var offertaVal = $("#offerta").val();
            $.get("http://externaldomain.com/send_mail.php",
                { nome: emailToVal, email: emailFromVal, telefono: telefonoVal, referente: referenteVal, citta: cittaVal, provincia: provinciaVal, commento: messaggioVal, offerta: offertaVal},
                    function(data){
                    if(data=='errore') {
                        alert('ERRORE'); }
                        else{
                        alert('Grazie! Messaggio inviato. La ricontatteremo il prima possibile.');
                        $.fancybox.close();
                        }
                    }
                 );

Now this code works just fine in every browser but NOT in IE.

In fact in IE I get an Access Denied Error for my jQuery code!!

How do I fix it?

What is the problem?

Why IE is not allowing me to do a GET request to a different domain name??

Thanks!

  • 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-25T15:39:29+00:00Added an answer on May 25, 2026 at 3:39 pm

    If you want to make call to different domains you should use $.ajax() and set crossDomain to true and dataType to jsonp i think.

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

Sidebar

Related Questions

I am using ajax to get data from a php file function getdata(param) {
I am using an Ajax call to a PHP file to get data from
I'm using AJAX to get data from server. The following is the php file.
I make an AJAX request like so using JQuery: $.ajax({ type: GET, url: getvideo.php,
I have an HTML document, which loads content from a PHP file using an
I am using jQuery, JavaScript and PHP. My Ajax.php file just displays the data.
I am trying to have a function grab an object from a php file
I'm using Ajax in a HTML page to get a URL from a PHP
so I have a file that will get $_GET['id'] from an ajax request here
i get the webpage content from an external website using ajax but now i

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.