473,545 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
+ 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 1484
gj****@googlema il.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.javas cript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Mar 12 '07 #2
ASM
gj****@googlema il.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****@googlema il.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.javas cript 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******** ************@gi ganews.com...
ASM said the following on 3/12/2007 7:28 PM:
>gj****@googlema il.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********@bar efile.com.auwro te 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
2425
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 just run scriptname.py (NOT python -i scriptname.py) and inside of scriptname.py I decide that I want to fall back to the interactive prompt? I've...
2
7798
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 finding it a bit cumbersome. It works, but if I switch from the interactive window to the plot window and back, the plot window gets trashed.
4
2363
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 keeping it as mush "HTML" as possible. Thanks in advance I'm not a GURU nor an EXPERT or something like that. I'm just a passionnate...
5
1555
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 ? and any other suggestions or good ideas that are pertain to construct a more powerful and common interactive menu system is also welcomed, and...
1
329
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 desktop login since we were watching things on it, etc. Well I went to test it the way I would assume our customers are going to run it, that is with...
2
1996
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 listener in my site to capture a "STATUS_CD" returned by www.payMe.com. It is working fine. 3. "WebForm3.aspx" is interactive page, responsibe to...
3
4591
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 with desktop. What about the following scenario: A service will create a thread. This thread will create and run an UI Windows application that...
10
2272
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 something like 10 print "hello" 20 print "Jim" and if I run it I would get hello
3
3928
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 tool that can create an interactive website (with dhtml, ajax or something like that) from such a diagram? I want to click on an entity and then only...
0
7459
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7653
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7411
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5965
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
4942
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3444
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3439
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1012
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
695
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.