Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jan 30, 2013 03:41 PM by bruce (sqlwork.com)
Member
8 Points
56 Posts
Jan 29, 2013 10:15 AM|LINK
why My following jquery function always execute Error block of alert but js.i-parcel.com is available..
------------------------
<script type="text/javascript"> $(document).ready(function() { }); function checkIparcel() { $.ajax({ type: 'GET', url: 'https://js.i-parcel.com', timeout: 15000, success: function(data) { alert('Connected to i-parcel.'); }, error: function(XMLHttpRequest, textStatus, errorThrown) { alert('Error:\r\n' + textStatus); } }); } </script>
https://js.i-parcel.com site is available , Still control goes into error block please help..
Jan 29, 2013 10:16 AM|LINK
All-Star
36822 Points
5441 Posts
Jan 30, 2013 03:41 PM|LINK
unless your calling page is hosted by js.i-parcel.com, you are getting a security error. if the site supports it you can use jsonp or use a proxy action on your website.
mrinalkumarj...
Member
8 Points
56 Posts
My following jquery function always execute Error block of alert but js.i-parcel.com is available
Jan 29, 2013 10:15 AM|LINK
why My following jquery function always execute Error block of alert but js.i-parcel.com is available..
------------------------
<script type="text/javascript">
$(document).ready(function() {
});
function checkIparcel() {
$.ajax({
type: 'GET',
url: 'https://js.i-parcel.com',
timeout: 15000,
success: function(data) { alert('Connected to i-parcel.'); },
error: function(XMLHttpRequest, textStatus, errorThrown)
{ alert('Error:\r\n' + textStatus); }
});
}
</script>
https://js.i-parcel.com site is available , Still control goes into error block please help..
mrinalkumarj...
Member
8 Points
56 Posts
Re: My following jquery function always execute Error block of alert but js.i-parcel.com is avail...
Jan 29, 2013 10:16 AM|LINK
https://js.i-parcel.com site is available , Still control goes into error block please help..
bruce (sqlwo...
All-Star
36822 Points
5441 Posts
Re: My following jquery function always execute Error block of alert but js.i-parcel.com is avail...
Jan 30, 2013 03:41 PM|LINK
unless your calling page is hosted by js.i-parcel.com, you are getting a security error. if the site supports it you can use jsonp or use a proxy action on your website.