*
The moose likes HTML, CSS and JavaScript and the fly likes Confusion on whether there is anything Ajax can do but JavaScript cannot do? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Confusion on whether there is anything Ajax can do but JavaScript cannot do?" Watch "Confusion on whether there is anything Ajax can do but JavaScript cannot do?" New topic
Author

Confusion on whether there is anything Ajax can do but JavaScript cannot do?

Monica. Shiralkar
Ranch Hand

Joined: Jul 07, 2012
Posts: 594
Using AJAX we can change part of a JSP page without reloading the entire page. But cant this be done using simple Javascipt. E.g of a AJAX task is populating cities based on states in dropdown.But cant this be done using Javascript.So what is there in AJAX which simple javascript cannot do?

Thanks.
Greg Charles
Sheriff

Joined: Oct 01, 2001
Posts: 2840
    
  11

When you say AJAX, you mean you're sending a request to the server, getting back a response, and using the response to update the DOM, i.e. part of the HTML page. JavaScript is involved of course. In fact it is the J in AJAX.
William P O'Sullivan
Ranch Hand

Joined: Mar 28, 2012
Posts: 860

True to a certain degree, JavaScript *can* be used to rewrite the HTML contents (the DOM) in the browser.

Now how would you say access a back-end business process, update a monthly sales figure without an AJAX
call back to the application server, return the data and rewrite it using Ajax.

They work together.

WP
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60785
    
  65

As Ajax is part of JavaScript it's a pointless question. It's like asking if there's something the java.net classes can do that Java cannot.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Monica. Shiralkar
Ranch Hand

Joined: Jul 07, 2012
Posts: 594
Thanks.I got the point.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Confusion on whether there is anything Ajax can do but JavaScript cannot do?
 
Similar Threads
please help me How to make InputText field not get more than specified value
Drop down from DataBase problem
populating one dropdown box depending on the value of other dropdown box
How to connect jdbc with javascript
does AJAX eliminate the need of refresh ?