grats
2013-02-26 21:17:48
$(function()
{
$('.more').live("click",function()
{
var ID = $(this).attr("id");
if(ID)
{
$("#more"+ID).html('<img src="moreajax.gif" />');
$.ajax({
type: "POST",
url: "scripts/file.php",
data: "lastmsg="+ ID,
cache: false,
success: function(html){
$("span#updates").append(html);
$("#more"+ID).remove(); // removing old more button
}
});
}
else
{
$(".morebox").html('The End');// no results
}
return false;
});
});http://stackoverflow.com/questions/6085649/ajax-multiple-data
I tried everything on that page, nothing works
it sends that lastmsg post fine, that's all I can get it to send though.. I need to send one more..
or a GET, either is fine with me, if someone knows how to do either
nvm I gave up, just sent all data in that one POST and then separated it out with php, rofl.