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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T23:18:58+00:00 2026-05-18T23:18:58+00:00

I am using JQuery, FLXHR for getting the data from Cross Browser. Below is

  • 0

I am using JQuery, FLXHR for getting the data from Cross Browser.

Below is the sample jquery code:

        // set up the domain that we're going to call and tell flXHR not to try to parse the response as XML..
 $.flXHRproxy.registerOptions("http://staging/", {xmlResponseText:false});

 // set flXHR as the default XHR object used in jQuery AJAX requests
 $.ajaxSetup({transport:'flXHRproxy'});


 $.ajax({  
        type:"POST",        
        url: "http://staging/Login.aspx",  // Send the login info to this page
        data: str, 
        dataType: "json", 
        success: function(result)
        { 
             // Show 'Submit' Button
            $('#loginButton').show();

            // Hide Gif Spinning Rotator
            $('#ajaxloading').hide();  
        } 

    });  

In above code I am using JQuery and Flash to have cross browser interaction, above code is working fine, with http://staging/Login.aspx, however when I am going for https://staging/Login.aspx (HTTPS) authentication its giving me error (NS_ERROR_PROXY_CONNECTION_REFUSED).

Please suggest how to get rid of this issue.

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-18T23:18:58+00:00Added an answer on May 18, 2026 at 11:18 pm

    I resolved my issue with given below code changes.

    I took the help of below articles.

    1) http://www.offshootinc.com/blog/2010/03/12/cross-domain-scripting-with-jquery-and-flxhr/

    2) http://tek-insight.blogspot.com/2010/05/cross-domain-ajax-request-proxy-json.html

    3) http://flxhr.flensed.com

    We have to download plugin from FLXHR website and have to copy the contents of “Deploy” folder in same location where all the Javascript are kept.

    Below is sample code of crossdomain.xml which we need to copy on the root directory of your website.

    <?xml version="1.0"?>
    <!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
    <cross-domain-policy>
      <site-control permitted-cross-domain-policies="master-only"/>
       <allow-access-from domain="*" secure="false"/>
       <allow-http-request-headers-from domain="*" headers="*"  secure="false"/>
    </cross-domain-policy>
    

    Here goes JQuery Code:

        var ajaxGatewayUrl = "https://staging/login/login.aspx";
        var loadPolicyURL = "https://staging/crossdomain.xml"
    
        // set flXHR as the default XHR object used in jQuery AJAX requests
        $.ajaxSetup({transport:'flXHRproxy'});
        // set up the domain that we're going to call and tell flXHR not to try to parse the response as XML..
        $.flXHRproxy.registerOptions(ajaxGatewayUrl,{xmlResponseText:false,loadPolicyURL:loadPolicyURL});
    
     //Submitting the form
    $("#loginDetails > form").submit(function()
    {
         //Hiding the Login button
        $("#loginButton").hide();
    
        //Showing the ajax loading image
        $("#ajaxloading").show();
    
        // 'this' refers to the current submitted form  
        var str = $(this).serialize();   
        // -- Start AJAX Call --
    
        $.ajax({ 
            type:"POST",        
            url: ajaxGatewayUrl,  // Send the login info to this page
            data:str, 
            cache:false,
            dataType: "json",        
            success: function(result)
            {  
                 // Show 'Submit' Button
                $('#loginButton').show();
    
                // Hide Gif Spinning Rotator
                $('#ajaxloading').hide();  
    
                if(result.Response!='NULL')
                {     
    
                         $('.validateTips').hide();
                        var login_response = '<div id="logged_in">' +
                         '<div style="width: 350px; float: left; margin-left: 80px;">' + 
                         '<div style="width: 40px; float: left;">' +
                         '<img style="margin: 22px 0px 10px 0px;" align="absmiddle" src="system/images/ajax-loader.gif">' +
                         '</div>' +
                         '<div style="margin: 24px 0px 0px 10px; float: right; width: 300px;">'+ 
                         "You are successfully logged in! <br /> Please wait while you're redirected...</div></div>";  
    
                        $('#loginButton').hide();
                        $('#closeBtn').hide();
                        $('#divMember').text(result.FirstName +' '+ result.LastName);
                        $('#spnSkywardsNo').text(result.ActiveCardNo);
                        $('#spnTierStatus').text(result.MemberShipTier);
                        $("#ui-dialog-title-skywardsLogin").text(getDataFromResourceFile('pleaseWait'));
    
                        $('#divSuccessLogin').html(login_response);
                        $('#divSuccessLogin').show();
                        $('#loginDetails').hide();
    
    
    
                        // After 3 seconds redirect the 
                        setTimeout(closeDialog, 3000); 
                  }
                else// ERROR?
                 {  
                     var login_response = getDataFromResourceFile('InvalidUsername');
                     $('.validateTips').html(login_response);
                 }
            }, 
            error:function(request, textStatus, errorThrown)
            {
                // Show 'Submit' Button
                $('#loginButton').show();
    
                // Hide Gif Spinning Rotator
                $('#ajaxloading').hide();  
    
                $('.validateTips').html("Some Issue with requested URL");
            } 
    
        });  
    
        // -- End AJAX Call --
    
        return false; 
    });
    

    Please have a look to above implementation and suggest for good inputs.

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

Sidebar

Related Questions

I am using JQuery, FLXHR for Cross browser authentications. I have implemented JQuery FLXHR
using jquery's .post i send do my php code an object that with var_dump
Using jQuery Ajax to fetch data from local server: it works well with IE8
Using jquery, I want to post data to from one of my pages to
Using jQuery timepickr: http://archive.plugins.jquery.com/project/jquery-timepickr Having included these files: jquery-1.7.1.min.js jquery-ui-1.8.21.custom.min.js ui.timepickr.js And getting this
Using jQuery, how can I get the input element that has the caret's (cursor's)
Using jQuery 1.6.2 HTML that I'm operating on <select id=langId> <option value=0>Argentina - Spanish</option>
Using jquery I have a clicking tab mechanism that are nothing but anchor tags
Using jquery, how can I find the first div that contains an input with
Using jquery 1.7.1, I'm using json to populate the dropdown. The code works just

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.