HighDots Forums  

ajax

Javascript JavaScript language (comp.lang.javascript)


Discuss ajax in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Carl Forsman
 
Posts: n/a

Default ajax - 11-03-2009 , 08:35 AM






Ajax is just regular client side javascript + 1 more small thing ->

XMLHttpRequest / ActiveXObject - that send XML to sever in the
background??

is that true?

Then learning Ajax is no more than learning the old javascript code on
how to change the DOM tree with HTML document?

the only different is there is ability to send XML to server through
HTTP request / response?

Reply With Quote
  #2  
Old   
Stevo
 
Posts: n/a

Default Re: ajax - 11-04-2009 , 01:09 AM






Carl Forsman wrote:
Quote:
Ajax is just regular client side javascript + 1 more small thing -

XMLHttpRequest / ActiveXObject - that send XML to sever in the
background??

is that true?

Then learning Ajax is no more than learning the old javascript code on
how to change the DOM tree with HTML document?

the only different is there is ability to send XML to server through
HTTP request / response?
Ajax (shorthand for asynchronous JavaScript + XML) is a group of
interrelated web development techniques used on the client-side to
create interactive web applications. With Ajax, web applications can
retrieve data from the server asynchronously in the background without
interfering with the display and behavior of the existing page. The use
of Ajax techniques has led to an increase in interactive or dynamic
interfaces on web pages. Data is usually retrieved using the
XMLHttpRequest object. Despite the name, the use of JavaScript and XML
is not actually required, nor do the requests need to be asynchronous.

http://en.wikipedia.org/wiki/Ajax_%28programming%29

Reply With Quote
  #3  
Old   
Thomas 'PointedEars' Lahn
 
Posts: n/a

Default Re: ajax - 11-04-2009 , 12:54 PM



Carl Forsman wrote:

Quote:
Ajax is just regular client side javascript + 1 more small thing -

XMLHttpRequest / ActiveXObject -
Yes, but not just any `ActiveXObject'.

Quote:
that send XML
No, the *server* can respond with/send XML or JSON or whatever. Client-side
scripting needs to process the response, and one needs to make an HTTP
request first (Consisting of headers and, if a POST request, of a message
body, too) for the server to respond. The request usually does _not_
contain XML markup, but it is possible (SOAP and XML-RPC being examples of
that).

Quote:
to sever
To sever your XML, use a <chainsaw/>.

Quote:
in the background??
Not necessarily.

Quote:
is that true?
Partially.

Quote:
Then learning Ajax is no more than learning the old javascript code on
how to change the DOM tree with HTML document?
No.

Quote:
the only different is there is ability to send XML to server through
HTTP request / response?
No.

Next time, STFW first. <http://en.wikipedia.org/wiki/Ajax_(programming)>
-- which can readily be found by typing "Ajax" into Google Web Search --
is a good starting point.

There is also a very good tutorial at MDC:
<https://developer.mozilla.org/en/AJAX>
(I wonder why it isn't linked from the Wikipedia article [anymore?])

See also: <http://jibbering.com/faq/#posting>


PointedEars
--
realism: HTML 4.01 Strict
evangelism: XHTML 1.0 Strict
madness: XHTML 1.1 as application/xhtml+xml
-- Bjoern Hoehrmann

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.