473,473 Members | 1,556 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

interactive sites

Can javascript be used to create interactive features like guestbooks?

Cheers,

TF

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

http://www.twobigones.com

Mar 12 '07 #1
7 1481
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

20
by: Joe | last post by:
When you run "python -i scriptname.py" after the script completes you left at the interactive command prompt. Is there a way to have this occur from a running program? In other words can I...
2
by: Charles Krug | last post by:
List: I'm trying to us pylab to see what I'm doing with some DSP algorithms, in case my posts about convolution and ffts weren't giving it away. I've been using pylab's plot function, but I'm...
4
by: doltharz | last post by:
Someone can point me to some good tutorial on building realtime multiuser interactive web pages? I prefer ASP/HTML but if there is no way, i'm open to Flash Java and Activex. By the way i prefer...
5
by: sugaray | last post by:
Right now, the code I wrote below seems works fine, i know it's definitely not the best solution, so if there are better solutions to eschew from using goto statements to jump out of multiple loops...
1
by: Nick Palmer | last post by:
As the title suggests, I've got a question about running an ASP.NET app on a server that has no interactive desktop login. In all our testing of our app here,the server always had an interactive...
2
by: WJ | last post by:
I have three ASPX pages: 1. "WebForm1.aspx" is interactive, responsible for calling a web site (https://www.payMe.com) with $$$. It is working fine. 2. "WebForm2.aspx" is non-interactive, a...
3
by: Lubomir | last post by:
Hi, I read that interactive windows services will not be allowed to run under Wista. I would like to ask what exactly is the interactive service. It is supposed to be a service that communicates...
10
by: notejam | last post by:
I am trying to get started with a interactive version of Python for windows and need some help. I have played with the tutorial, and now want to write a program. In basic language, I could write...
3
by: Marcus | last post by:
Hy! I use Visio 2002 to draw an ER-Diagram with round about 200 entities and 800 relationships between these entities. Little bit of horror, but I am on my way. My question is, is there a...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.