[Javascript] Question - Page Load Feedback

Harvey A. Ramer harvey.ramer at designdelineations.com
Wed Jul 20 10:00:39 CDT 2005


I guess that I've over-complicated this. I can hide the status message with
an onload event and trigger it as suggested, by the onclick event. Since the
page doesn't finish loading until after the query returns from the db, this
is a clean way to approach it.

Thanks to Shawn and Flavio for your insight and help.

-----Original Message-----
From: Shawn Milo [mailto:shawn.milo at gmail.com]
Sent: Wednesday, July 20, 2005 10:36 AM
To: [JavaScript List]
Subject: Re: [Javascript] Question - Page Load Feedback


Oh. Well, if you're concerned with the speed, maybe you can put some text or
a graphic that says "loading," and show it and hide the links when a link is
clicked.

Possibly with divs, by setting one to a style of display: none and the other
display: block in the onclick() of the links.

This is me assuming that what you're saying is that people click on the
link, nothing appears to happen for several seconds, and they think the link
did nothing. If I'm wrong, please clarify. For me, the response was very
fast, but I'm sure the stars won't always align to produce that result.

Milo


On 7/20/05, Flavio Gomes <flavio at economisa.com.br> wrote:
> Milo, I believe he meant these links:
>
> Find Lodging
>     * Bed & Breakfasts
>     * Hotels & Motels
>     * Campgrounds
>     * Camps, Cottages & Cabins
>     * Singer Castle
>
>  They most probably do some kind of query on the database.
>
>   Right now it really doesn't seem to be so heavy for you to need to
> do some kind of control, but you can simply remove the "href" property
> of the "Anchor" tags and show some kind of message, so the user won't
> be able to click twice and generate big traffic on your server, that's
> the problem you're facing, right? (problem = big traffic)
>
> --
> Flavio Gomes
> flavio at economisa.com.br
>
>
> Shawn Milo wrote:
>
> >I checked out your site, but I'm not sure what you mean by 'choose
> >another option under lodging.' The link 'lodging' itself doesn't do
> >anything, but I'm sure it's because I was already on the lodging
> >page. But the links underneath it all change the information on the
> >page.
> >
> >Maybe I'm just misunderstanding your description of the problem...
> >
> >Milo
> >
> >On 7/20/05, Harvey A. Ramer <harvey.ramer at designdelineations.com>
> >wrote:
> >
> >
> >>I designed a web site does not provide feedback after a user clicks
> >>a link that queries the db. The result is that the user wonders if
> >>anything is happening. What is the simplest way I can approach this
> >>project using Javascript? I'm not asking for a complete script, just
> >>how to research and develop a solution. The URL is
> >>http://67.15.98.86/tourism/lodging-dining/lodgingbandb/ and if you
> >>choose another option under lodging you will see what I mean.
> >>
> >>My initial thought is to provide a boolean variable from PHP for
> >>Javascript to use as an event. When the boolean is on, the event
> >>triggers and an animated gif appears. Is this the best way?
> >>
> >>Thanks
> >>
> >>Harvey Ramer
> >>
> >>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>


--
Shawn Milochik

The Freelance Pen
FreelancePen.com
610-621-2648
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu https://lists.LaTech.edu/mailman/listinfo/javascript






More information about the Javascript mailing list