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.
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.
Here goes JQuery Code:
Please have a look to above implementation and suggest for good inputs.