aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Setting an interval between two quiries Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Setting an interval between two quiries" Watch "Setting an interval between two quiries" New topic
Author

Setting an interval between two quiries

Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3479

Hi.
I noted a nice feature in Ubuntu forums.
Ubuntu forums doesn't allow you to run two searches, you have to wait for 3 or 15 seconds in order to run the second query.
I'm not a savvy web developer, but how they do this?
Please note that when you submit the form for the second search, the request is sent to the server and a page with an explanation message is displayed, so I don't think JavaScript is used.
Thanks.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61658
    
  67

Without a better explanation, I'm not sure how to answer.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3479

Here is a small work flow:
Populate search field -> submit the button -> result page
Back button -> Populate search field -> submit the button -> a new page indicating you have to wait for 15 seconds before running your second search
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Probably a simple session variable on the server that holds the last time. Before the query is executed the time is looked up from session. If under XXX, it redirects you to the please wait XXX page.

Eric
Bryce Martin
Ranch Hand

Joined: Nov 19, 2007
Posts: 269
Have you tried to email their support people and see if they'll just tell you?
 
 
subject: Setting an interval between two quiries