Im new in Ajax, i try to learn Ajax to change my PHP script into Ajax,.
when i look for an reference, i found a defferent Ajax Script, and Ajax JQuery?
so what is deference between AJAX and JQuery?

Recommended Answers

All 9 Replies

Ajax is basically javascript code that allows for sending data to, and retrieveing data from a server without having to reload the page using the XMLHttpRequest object.

JQuery is a javascript library that contains Ajax related methods making it easier to use.

So, it means?
JQuery Ajax is easier for a newbie Programming..isn't it?

better if I try to learn about JQuery First berfore I learn AJAX??
or which one better for learn??

where should I begin this Study??

It's easier to start with jQuery, but if you want to understand what's happening, start with Javascript.

the what about JSON inside of AJAX??
and how to aplicate JSON using JQuery ajax??
may you have a basic tutorial for this?

I'm so confuse with them..

That's why you should be learning some basic JavaScript, so that when you start understanding JavaScript, you will instantly become aware of the fact that: AJAX,JSON and jQuery are nothing but >>JavaScript<<

Member Avatar

may you have a basic tutorial for this?

Have you searched for 'json ajax'? Just a thought

Troy III : yes i have learned about JavaScript and i could understand it, but i see a different way/style of the script ..
what is the difference?? may you have a basic structure of these? and then tell me the develop script.
ex :

$("#submitcontact").click(function() {

var statuscontact = $("#statuscontact").val();
var id_pesan = $("#id_pesan").val();
    var dataString = 'statuscontact='+ statuscontact + '&id_pesan=' + id_pesan ;

    if(statuscontact=='' || id_pesan=='')
    alert('Please Give Valide Details');
    $("#flashcontact").fadeIn(200).html('<img src="ajax-loader.gif" align="absmiddle">&nbsp;<span class="loading">Loading ...</span>');
    type: "POST",
    url: "account/modul/aksiajax.php?modul=contact&act=inputcontact",
    data: dataString,
    cache: false,
    success: function(html){

  $("div.update li:last").fadeIn("slow");

return false;

and these :

function chtmuncul(id){
        chtshow = "chthilang";
    chtiddiv = "chtinputkomentar"+id;
    chtiddivkomen = "chtkomentar"+id;
    chtidsebelumnya = id;
        document.getElementById(chtiddiv).style.display = "block";
        document.getElementById(chtiddivkomen).style.display = "block";
        chtshow = "chtmuncul";
    chtidnama = "chtnama"+id;
    chtnamax = document.getElementById(chtidnama).value;
    if(chtnamax.length > 0 && chtkomen.length > 2){
        chtdrz = chtbuatajax();
        var url="account/modul/chatstatus.php";
        document.getElementById(chtiddiv).style.display = "none";
        document.getElementById(chtiddivkomen).style.display = "none";
        chtshow = "chthilang";


when i use those script together, somethime i got an error..
may i combine it together with same format??

diafol : yes i have, but i cant get the basic -> pro tutorial..
what i got is only like save json script into file .txt.. but not to save it in database. or combine it with php script

sorry but im really newbi..

AJAX stands for Asynchronous Javascript And XML and It is a technique to do an XMLHttpRequest from a web page to the server and send/retrieve data to be used on the web page.

jQuery is a JavaScript library designed to simplify the client-side scripting of HTML.

jQuery is a JavaScript library designed to simplify the client-side scripting of HTML.

or to better say uglify it :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.