jquery - jsfiddle - Simple Ajax request -
i beginner jquery , trying call simple request. here's jsfiddle:
i using code:
html: <button>click me</button>
and
jquery: $("button").click(function() { $.ajax({ url: "http://jsfiddle.net/echo/html/", success: function(result) { alert("data: " + result); } }); });
but doesn't work. reading documentation doesn't me. can suggest solution?
thank much
........
these reasons problem:
- you have refer jquery library reference jsfiddle
- you cant use absolute urls ajax requests. please refer following answer more information.
$.ajax call working fine in ie8 , doesn't work in firefox , chrome browsers
Comments
Post a Comment