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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T11:53:19+00:00 2026-06-02T11:53:19+00:00

I have an HTML page designed with bootstrap that calls a REST Service to

  • 0

I have an HTML page designed with bootstrap that calls a REST Service to update info the DB. Here is the javascript:

$.support.cors = true;

$.ajaxSetup ({
  // Disable caching of AJAX responses
  cache: false,
  async: false
});

$("#submitemail").click(function() {

$.getJSON('http://sub.mydomain.com/getinfo/'+ 
                 encodeURIComponent($('#emailaddress').val()), 
                 function(resp) {
                    //do something here
                  }); 
});

Works in FF.

Using IE – If I open the html file from my desktop and run…it will call the sub.mydomain.com and fetch the info. However, if I open the site from http://www.mydomain.com and the invoke the method – nothing. Checked with Fiddler – IE does not even send a request.

  • 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-02T11:53:23+00:00Added an answer on June 2, 2026 at 11:53 am

    You can’t call a subdomain from your main domain like this. It’s a ‘cross-domain’ request, and the request will break. It should never work from www.mydomain.com — even on FF.
    I don’t know how it does.

    Anyway, how is your server built? Is the sub.mydomain.com folder within mydomain.com/?Such as:

    Top level domain:

    http_public/mydomain.com/

    Sub Domains

    http_public/mydomain.com/sub_domains/sub.mydomain.com/

    ?

    If the file structure is like this, then you can allow access directory and use

    url: '/sub_domains/sub.mydomain.com/getinfo'+whatever

    Else, you need to use JSONP

    JSONP or “JSON with padding” is a complement to the base JSON data format. It provides a method to request data from a server in a different domain, something prohibited by typical web browsers because of the Same origin policy.

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

Sidebar

Related Questions

I have an HTML page that uses AJAX to retrieve messages from a server.
I've designed a web page in asp.net. And in that page i placed html
Alright so I have a custom page template designed with javascript and php (lets
Let's say that I have two html pages that are identically designed, but have
Hi I have a page that is designed for wide screens so I created
I have a dynamically generated html page which is designed to be printed. I
I have a page designed with many HTML Tables which are hidden or displayed
I have designed a responsive layout that you can see here: http://pixelcakecreative.com/cimlife/responsive/ When viewed
I have HTML page where windows media player is embedded. It works very well
I have HTML page with some HTML element with ID=logo . I need 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.