0

I have written a piece of jQuery code in http://example.com.

The code looks like this:

$.post('http://example.com:3000/service',params,function(data){});

This code works in chrome and firefox but not in IE. Is my request crossbrowser?

Thanks in advance

Matt
  • 74,352
  • 26
  • 153
  • 180
Joby Joseph
  • 2,177
  • 3
  • 15
  • 19
  • If your calling page is on port 80, it'll be a x-browser request. Scheme, domain and port are all taken into account. – Matt Sep 28 '12 at 13:36
  • see http://stackoverflow.com/questions/2099728/how-do-i-send-an-ajax-request-on-a-different-port-with-jquery – Sruly Sep 28 '12 at 13:37
  • eh, who needs to know the specifics about the error, right? the important thing is that it works in some situation, and it doesnt in others. :\ – RASG Sep 28 '12 at 13:38

1 Answers1

0

JSONP with jQuery

I think you're looking for JSONP - check that link for an example

Community
  • 1
  • 1
hardba11
  • 1,478
  • 15
  • 27