1.11M Members

Defference AJAX and Ajax JQuery

 
0
 

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?

 
0
 

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.

 
0
 

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??
 
0
 

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

 
0
 

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..

 
0
 

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<<

 
0
 

may you have a basic tutorial for this?

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

 
0
 

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');
     }
    else
    {
    $("#flashcontact").show();
    $("#flashcontact").fadeIn(200).html('<img src="ajax-loader.gif" align="absmiddle">&nbsp;<span class="loading">Loading ...</span>');
    $.ajax({
    type: "POST",
    url: "account/modul/aksiajax.php?modul=contact&act=inputcontact",
    data: dataString,
    cache: false,
    success: function(html){

  $("div.update").append(html);
  $("div.update li:last").fadeIn("slow");
  document.getElementById('id_pesan').value='';
    $("#id_pesan").focus();

  $("#flashcontact").hide();
  }
 });
}
return false;
    });

and these :

function chtmuncul(id){
    if(id!=chtidsebelumnya){
        chtshow = "chthilang";
    }
    chtiddiv = "chtinputkomentar"+id;
    chtiddivkomen = "chtkomentar"+id;
    chtidsebelumnya = id;
    if(chtshow=="chthilang"){
        document.getElementById(chtiddiv).style.display = "block";
        document.getElementById(chtiddivkomen).style.display = "block";
        chtshow = "chtmuncul";
        chtambil(id);
    //--    
    chtidnama = "chtnama"+id;
    chtnamax = document.getElementById(chtidnama).value;
    if(chtnamax.length > 0 && chtkomen.length > 2){
        chtdrz = chtbuatajax();
        var url="account/modul/chatstatus.php";
        url=url+"?id_chat="+id;
        url=url+"&nama="+chtnamax;
        url=url+"&sid="+Math.random();
        chtdrz.onreadystatechange=chtstateChanged;
        chtdrz.open("GET",url,true);
        chtdrz.send(null);
    }
    //--
    }else{
        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..

 
0
 

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.

 
0
 

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

or to better say uglify it :)

You
This article has been dead for over six months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article