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 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

Using jQuery , how can I dynamically set the size attribute of a select
Using jQuery, how do you bind a click event to a table cell (below,
Using jQuery, is there a way to select all tag that reference a specific
When using jQuery 's ajax method to submit form data, what is the best
Using jQuery, is there a way to disable the click sound in IE that
Using jQuery, how do you check if there is an option selected in a
Using jquery how do I focus the first element (edit field, text area, dropdown
Using jQuery, what's the best way to find the next form element on the
Using jQuery, how do I delete all rows in a table except the first?
Using jQuery, how would you find elements which have a particular style (eg: float:

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.