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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T22:46:04+00:00 2026-05-16T22:46:04+00:00

I’m using jsonp to do cross-domain comet requests, and the loading status is really

  • 0

I’m using jsonp to do cross-domain comet requests, and the “loading” status is really annoying.

Is there any way to suppress this with javascript?

For those who are unfamiliar with jsonp, it basically injects a script tag, except in my case, I’m hanging the request on my server without returning the request until a later time.

During this time, browsers see my request as a “loading” state.

I am using this: http://code.google.com/p/jquery-jsonp/

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-16T22:46:05+00:00Added an answer on May 16, 2026 at 10:46 pm

    As far as I know, there is no way to suppress the loading status using Javascript, regardless of why you have it.

    However, there is at least one alternative for cross-domain COMET which wouldn’t trigger the loading status in the first place. XMLHttpRequest doesn’t set the loading status and, according to my tests, the CORS (Cross-Origin Resource Sharing) spec which allows cross-domain XHR is pretty well supported.

    Basically, support is as follows: (According to a mix of browser documentation and my own tests for a project I’m working on)

    Full support in:

    • Gecko 1.9.1+ (Firefox 3.5, SeaMonkey 2.0, etc. Tested good Firefox 3.6.8 and SeaMonkey 2.0.7)
    • WebKit (Safari 4+, Chrome 3+, etc.. Tested working on Safari 4 on OSX, Safari 5 on WinXP, Chrome 5.0.375.127 (Stable channel), Midori 0.2.7, the new Flock, Epiphany 2.30.2, luakit, and uzbl)

    Untested, but should be fully supported:

    • Fluid (WebKit-based MacOS alternative to Mozilla Prism and Chrome’s “Create Application Shortcuts…”)

    Limited support in:

    • Internet Explorer 8 (Microsoft implemented an XDomainRequest() object instead and, using security as an excuse, didn’t implement the flag to pass credentials and cookies with the request)
    • Sleipnir (Support is determined by which version of MSHTML it’s embedding)

    Notably unsupported:

    • Opera (As of 11.01.1190, no support whatsoever)
    • Camino (As of 2.0.5, still based on Gecko 1.9.0 (Firefox 3.0))
    • Arora (As of 0.10.2, inherits WebKit’s CORS API but has a bug that causes requests to fail)
    • old, Mozilla-based Flock (Based on Gecko 1.9.0 (Firefox 3.0))

    It’s not a complete list, but it’s every browser with userscript support I could find to test. I’ve already taken the time to cite my sources on the CORS wikipedia page if you want them.

    The simplest solution I can think of would be to test for CORS and then fall back to JSONP so that people using a modern browser get a perfect experience and people using something older see the loading status as an unavoidable side-effect.

    Here’s the MDC page on how CORS works.

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

Sidebar

Related Questions

I'm new to using the Perl treebuilder module for HTML parsing and can't figure
That's pretty much it. I'm using Nokogiri to scrape a web page what has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I used javascript for loading a picture on my website depending on which small
I am reading a book about Javascript and jQuery and using one of the
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
We're building an app, our first using Rails 3, and we're having to build
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We are using XSLT to translate a RIXML file to XML. Our RIXML contains

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.