"Randy Webb" <Hi************@aol.comwrote in message
news:m5********************@giganews.com...
ASM said the following on 3/12/2007 7:28 PM:
>gj****@googlemail.com a écrit :
>>Can javascript be used to create interactive features like guestbooks?
A guestbook is not something what I call interactive.
No, JavaScript can't do it (to save datas).
But JavaScript can call a file on server that can do it.
Ask Google : XMLHttpRequest
Why have people fallen into the trap of thinking that the XMLHttpRequest Object is the
answer to all questions when it rarely is? You can send data to the server with a simple
new Image() and set it's src property as shown in the group FAQ. After the image has
loaded you can redirect to an updated view of the guestbook page.
I think a lot of people hear Ajax and think one of two things:
Server interaction
DHTML
Of course, one of those is a flawed perception.
Anyway, I still prefer to use FAQ 4.37 (
http://jibbering.com/faq/index.html#FAQ4_37 ) if
JavaScript is available.
The object trick (FAQ 4.34) just seems weird to me.
Also, would it help if XHR was not mentioned alongside FAQ 4.34? The way I read it is
that you have two options, set a new Object to handle your script or use an XHR.
Of course, this may be the desired effect. *shrugs*
-Lost