Ben nasıl emin jquery çalışmalarını sessiz değilim. JQuery açısından GET ve POST hakkında birkaç şey bilmek istiyorum.
Benim app aşağıdaki kodu kullanabilirsiniz:
<script>
function example_ajax_request() {
$('#example-placeholder').html('<p>Loading results ... <img src="ajax-loader.gif" /></p>');
$('#example-placeholder').load("ind.php?show=" + $('#box option:selected').val());
}
</script>
I am not using either GET or POST in this method.
I am using a button to call the example_ajax_request to process the request and get the results.
Bazen bu gibi bir kod bakın:
$.ajax({
url: 'loader.php',
data: 'somedata',
method: 'GET',
success: function(data){
$('#er').text(data);
}
});
My doubt is, is it required or not that we use a method to post the data? (either GET or POST) while send and getting the data in PHP webapps? The code that I use first works fine even though I do not use any POST or GET methods.
Herhangi girdiler?
Teşekkürler.