javascript - Getting XML from url through Jquery/ajax -
i've got url here
http://94.23.34.69:7240/ wich contains xml information. need information between tags
<name>ig_battlegrounds</name> <mapname>brezaliad</mapname> <numberofactiveplayers>35</numberofactiveplayers> <maxnumberofplayers>50</maxnumberofplayers> when getting information need print html. managed trough php taking long , makes website load slowly. haven't worked ajax yet. hope can me. tried use this
$.ajax({ type: "get", url: "http://94.23.34.69:7240/ ", datatype: "xml", success: function(xml) { alert("xml"); } }); but not working. doesn't show anything. need include special using ajax? need al information comming link , break info can use parts of print website
http://module.game-monitor.com/85.236.100.184:8876/website.php?s=test.css&f=18 help appriciated.
you cannot send ajax request domain other yours.
https://en.wikipedia.org/wiki/same-origin_policy
you can circumvent using cors (if can manage server) or using proxy.
Comments
Post a Comment