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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T18:29:29+00:00 2026-05-22T18:29:29+00:00

I am trying to access my webservices that is build in .Net using Javascript.

  • 0

I am trying to access my webservices that is build in .Net using Javascript.

<html>
<head>
    <title>Test Web service</title>

    <script type="text/javascript">

        function httptest(){

            var http = new XMLHttpRequest();
            var params = "";
            var RetFlag = "Webmail-"+ false;            
            http.open("Post", "http://localhost:3624/_anet/wsCoverageValidate.asmx/CheckCoverage" , false);         
            http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
            http.setRequestHeader("Content-length", params.length);
            http.setRequestHeader("Connection", "close");       
            http.onreadystatechange = function()
            {
                if(http.readyState == 4 && http.status == 200)
                {   
                    var resp=http.responseText; 
                    alert(resp);
                }
            }           
            http.send(params);      
        }
    </script>

</head>
<body>
    <div style="float: left; width: 100%; background-color: Gray;">
        <button id="btngo1" value="Go" type="submit" onclick="httptest()">
            Go
        </button>
    </div>
</body>
</html>

This is my html page with javascript. Now it runs fine with Internet Explorer, but it creates problem while accessing from firefox. It gives me javascript error as

Component returned failure code: 0x80004005 (NS_ERROR_FAILURE)

, in Error console. I searched a lot for this, but yet no success.

Please help me.
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-22T18:29:29+00:00Added an answer on May 22, 2026 at 6:29 pm

    I have got the answer for my issue, it cannot be tested on local. Mozilla provide such type of security.

    When i uploaded my html file on my server and called from my PC then it works fine. ]

    I got the answer from here

    Thanks all.

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

Sidebar

Related Questions

I'm using Flex and am trying to access a Web Service. That web service
I'm trying to setup a WCF web service to be consumed by JavaScript using
I am trying to access Folder from Document Library using web services in C#.
Im trying to access a web service from a remote computer. I managed to
I'm trying to think of how to validate that a web service is only
Here's the proxy method that was created for the web service I'm trying to
I have an asp.net page that is trying to access a SSRS 2008 ReportServer
I'm trying to consume some .NET web services using JAX-WS. I have generated the
I'm experiencing problems when trying to access my sharepoint site using web services (on
My company has developed a .NET web service and a client dll that uses

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.