1,105,288 Community Members

Defference AJAX and Ajax JQuery

Member Avatar
Linddha
Light Poster
39 posts since Nov 2013
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
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?

Member Avatar
JorgeM
IT Addict
6,381 posts since Dec 2011
Reputation Points: 567 [?]
Q&As Helped to Solve: 953 [?]
Skill Endorsements: 172 [?]
Moderator
Featured
Sponsor
 
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.

Member Avatar
Linddha
Light Poster
39 posts since Nov 2013
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
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??
Member Avatar
pritaeas
mod_pritaeas
11,285 posts since Jul 2006
Reputation Points: 1,420 [?]
Q&As Helped to Solve: 1,831 [?]
Skill Endorsements: 154 [?]
Moderator
Featured
Sponsor
 
0
 

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

Member Avatar
Linddha
Light Poster
39 posts since Nov 2013
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
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..

Member Avatar
Troy III
Practically a Posting Shark
891 posts since Jun 2008
Reputation Points: 174 [?]
Q&As Helped to Solve: 119 [?]
Skill Endorsements: 10 [?]
 
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<<

Member Avatar
diafol
Where are my eyes?
12,941 posts since Oct 2006
Reputation Points: 1,821 [?]
Q&As Helped to Solve: 1,845 [?]
Skill Endorsements: 90 [?]
Moderator
Featured
Sponsor
 
0
 

may you have a basic tutorial for this?

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

Member Avatar
Linddha
Light Poster
39 posts since Nov 2013
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
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..

Member Avatar
logeshwar
Newbie Poster
1 post since Jan 2014
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
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.

Member Avatar
Troy III
Practically a Posting Shark
891 posts since Jun 2008
Reputation Points: 174 [?]
Q&As Helped to Solve: 119 [?]
Skill Endorsements: 10 [?]
 
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 three months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article