No conversion from script to jsonp (chrome, safari & fireworks)
From localhost I call a rest service (php) via cross domain using jsonp, it works on Internet Explorer but I got error on Chrome (21.0.1180.60), Safari and Firefox. Any idea or help is welcome.
Here is the code:
- $.ajax({
- type: "GET",
- url: urlroot,
- data: {},
- dataType: "jsonp",
- success: function(resp){
- alert("mserver says: "+resp.message);
-
- },
- error: function(e, textStatus, errorThrown){
- alert('Error: '+errorThrown );
-
- }
- });
Please tell me what's wrong