470,619 Members | 1,783 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,619 developers. It's quick & easy.

interactive sites

Can javascript be used to create interactive features like guestbooks?

Cheers,

TF

-----------------------------------------------------

http://www.twobigones.com

Mar 12 '07 #1
7 1412
gj****@googlemail.com said the following on 3/12/2007 6:54 PM:
Can javascript be used to create interactive features like guestbooks?
Umm, sure. But only if the server has the required software as well.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Mar 12 '07 #2
ASM
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

In "normal" JavaScript
you can program some actions looking like interactivity
(small game, diaporama, questions and answers, ... )

HTML is interactive : you click ... something happens

--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
Stephane Moriaux and his (less) old Mac already out of date
Mar 12 '07 #3
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.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Mar 13 '07 #4
"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
Mar 13 '07 #5
-Lost wrote:
I think a lot of people hear Ajax and think one of two things:

Server interaction
DHTML
Bathroom cleaner.
Mar 13 '07 #6
"Richard Formby" <ne********@barefile.com.auwrote in message
news:eB******************@news-server.bigpond.net.au...
-Lost wrote:
>I think a lot of people hear Ajax and think one of two things:

Server interaction
DHTML

Bathroom cleaner.
Excuse me. One of three things.

-Lost
Mar 13 '07 #7
ASM
Randy Webb a écrit :
ASM said the following on 3/12/2007 7:28 PM:
>>
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?
because it's tooooo cooool ! :-)
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.
Way of doing reserved to grand fathers !
too much easy,
not enough exiting,
not enough problems with cross domains,
and so on :-)

I think some browsers flash between old an new page,
and it's smoother when you just innerHTML a div.
--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
Mar 13 '07 #8

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

20 posts views Thread by Joe | last post: by
2 posts views Thread by Charles Krug | last post: by
5 posts views Thread by sugaray | last post: by
2 posts views Thread by WJ | last post: by
3 posts views Thread by Lubomir | last post: by
10 posts views Thread by notejam | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.