472,980 Members | 1,769 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,980 software developers and data experts.

interactive sites

Can javascript be used to create interactive features like guestbooks?

Cheers,

TF

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

http://www.twobigones.com

Mar 12 '07 #1
7 1467
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: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.