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

  • Home
  • SEARCH
  • 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 8049997
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T06:56:31+00:00 2026-06-05T06:56:31+00:00

I am trying to implement a static javascript / jQuery script for testing my

  • 0

I am trying to implement a static javascript / jQuery script for testing my ajax functions. This would be for instance somewhere in my home directory and would contain a bunch of ajax requests to my localhost:

function getSomethingAjax(){
    $.get('http://127.0.0.1:8888/getSomething',{} , function(json){    
        getSomethingCallback(json);
    }, "json");
}

My Firebug gives my an error like this:
firebug screenshot http://img443.imageshack.us/img443/4934/tinygrabscreenshot06061.png
But if I open the page manually (just type in browser: 127.0.0.1:8888/getSomething) I get the matching return. What is the difference between accessing the url? I the ajax request waiting for a specific return value?

  • 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-05T06:56:33+00:00Added an answer on June 5, 2026 at 6:56 am

    The page making the Ajax request and page requested must be in the same domain.

    The browser will block any ajax request that violates this.

    Just a suggestion:
    I would suggest to use a server side language to do the tests. This will allow you to make call to the application without having to keep the test scripts in the same domain.

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

Sidebar

Related Questions

I am trying to implement Mutex lock on one of my static function of
Im trying to implement an Observer/Observable pattern on an EC2 instance. I have been
i have 2 void functions(trying to implement radio button), i want them to send
I am trying to implement a jquery gallery plugin in a force.com site. I
I am currently trying to implement the wonderful jQuery plugin 'week calendar' ( here
I am trying to implement an algorithm I found in C# in javaScript and
I'm trying to implement the producer-consumer algorithm on ATMega323_WinAVR using FreeRTOS. I get this
I have this weird kind of error. I am trying implement basic Euclidean algorithm
I am trying to implement generics in Java using Comparable<T> interface. public static <T>
I'm trying to implement this simple example of how to synchronize threads using pthread

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.