• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

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

 
Ranch Hand
Posts: 2550
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Sheriff
Posts: 3036
12
Mac IntelliJ IDE Python VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 859
IBM DB2 Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Sheriff
Posts: 67596
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Monica Shiralkar
Ranch Hand
Posts: 2550
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks.I got the point.
 
reply
    Bookmark Topic Watch Topic
  • New Topic