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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T18:35:27+00:00 2026-05-31T18:35:27+00:00

The following JQuery get call: var doc_root = document.location.hostname + :8082; var fw_script =

  • 0

The following JQuery get call:

var doc_root = document.location.hostname + ":8082";
var fw_script = doc_root + "/sites/MyScripts/fw2.php";
var langpref = "EN";

var ttype = "BEGIN";
var vvalue = $("#inp_begin").val();

$.get(fw_script, { type: ttype, value: vvalue, langpref: langpref })
    .success(function(result) {
        $(fw_result).text(result);
        alert("Success");
    })
    .error(function(jqXHR, textStatus, errorThrown) {
        $(fw_result).text("Error: " + textStatus + " " + errorThrown);
        alert("Failure");
    });

is generating the following error message (.error is called):

Error: error [Exception... "Component returned failure code: 0x805e0006
[nsIXMLHttpRequest.open]" nsresult: "0x805e0006 (<unknown>)" location: "JS frame ::
http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js
:: <TOP_LEVEL> :: line 4" data: no]

I have no idea what this message is and I can’t find much explanation with my Googling. Can anyone clarify?

UPDATE

The called URL is constructed as following in Javascript:

var doc_root = document.location.hostname + ":8082";
var fw_script = doc_root + "/sites/MyScripts/fw2.php";

and fw_script‘s value is:

fw.localhost:8082/sites/MyScripts/fw2.php

It is called from

fw.localhost:8082/en

When I try fw.localhost:8082/sites/MyScripts/fw2.php in my browser, it is successful.

  • 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-31T18:35:28+00:00Added an answer on May 31, 2026 at 6:35 pm

    Looks very likely that you’re dealing with a cross-domain request error. According to the Same Origin Policy, you can’t make an AJAX request to a host with a different port number, even if it’s the same domain. It looks like you’re setting doc_root to a different origin, by this definition, so you’ll likely get an error on the AJAX request.

    The standard options for fixing this:

    • Serve your data from the same host you’re making the request from.

    • Use JSONP instead of JSON.

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

Sidebar

Related Questions

I have the following jQuery script: $(document).ready(function() { $.ajax({ url: 'temp.ajax.php', type: 'GET', success:
I have my front end script which has the following jQuery code: $.get(/backend/post.php, {
I have the following jQuery ajax call setup: function Testing() { var result =
Environment used: ASP.NET, jQuery I have the following AJAX call: var tempVar = JSON.stringify({plotID:currentId});
I use the following jquery statements but i get error in this function onGetDataSuccess(result)
I can't seem to get jQuery to notice the div within the following markup
If I have following in jQuery $(#someId).add(#someOtherId).bind(click, function(e) {... I get the click bound
How to get previous page URL using jQuery? I am using the following code
Do you think jquery could help me get the following script work faster? Thanks!
I'm struggling with the following problem. I use the jQuery autocomplete plugin to 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.