AJAX posts

83 views
Skip to first unread message

CrazyCarl

unread,
Mar 31, 2011, 5:32:20 AM3/31/11
to Webduino
SO

I think i'd lose it if i actually got this thing to work with GET and
POST ajax.

the example including the danger shield is cool .. but i dont happen
to have one laying around =[

.. more importantly could we get some sample ajax requests


this particular one is in jquery:

$("#button_1").click(function(){
data = 'goobeldy'
$.ajax({
type: 'POST',
url: 'http://192.168.0.145/raw.html',
data: data,
success: function(data) {
alert('great success');
}
});
});

theres also something called the "same origin policy" that ajax
requests need to adhere to .. so im not entirely sure how scalable
this get/post solution is..
Reply all
Reply to author
Forward
0 new messages