Questions tagged [ajax]

AJAX (Asynchronous Javascript And XML) is a popular technique for creating interactive websites, though other technologies (e.g. JSON) are often used instead of XML.

Filter by
Sorted by
Tagged with
16
votes
4answers
4k views

HTML buttons vs hyperlinks for navigation

When creating an overall site style guide, how do you determine when a button or a hyperlink should be for something other than navigation? I see many time with the heavy usage of jQuery and AJAX, ...
26
votes
4answers
10k views

What is an acceptable response time for my ajax ui?

When I have to load new information from my web server via ajax after a user action, how fast should the information be displayed for the user in order to be a good working UI for the user?
19
votes
5answers
4k views

Should we be optimistic or pessimistic with UI updates on AJAX requests?

We are discussing in our team how best to handle UI updates after a user does something to cause an AJAX request to the server. Here are options we are considering: Instantly update the UI and add/...
11
votes
9answers
3k views

What to display while waiting for a process (4-5 seconds) to complete?

We realized that in some cases the user may be waiting up to 4 or 5 seconds (depending on connection) for their form (or some action) to be processed. The form involves getting data from other servers ...
11
votes
6answers
7k views

Is there a name for this instant filter search pattern?

I've been trying to find a jQuery plugin which creates behavior similar to that of Stack Exchange user searches. The user search used on Stack Exchange sites is not an auto complete, but is more akin ...
18
votes
2answers
20k views

When should I use AJAX to submit forms VS regular page submit

Prior to widespread AJAX use and DHTML a form was submitted and the browser would refresh by loading the response to that POST HTTP request which replaced the previous (form) page in the viewport. ...
8
votes
3answers
1k views

Assume success and show response immediately or wait for a response from the server?

All over my CMS I have buttons that toggle something on or off by sending an ajax request, updating the db, and then changes state and value of the button on success. Very basic "ajax" and "toggle". ...
8
votes
2answers
809 views

How to load long-time-taking content?

We have a page that takes very long to load (approx. 15 seconds, might be even more for some clients) as the data it generates is heavy and slow. While we are trying to directly speed it up, 15 is ...
3
votes
2answers
556 views

What to do when loading is TOO fast? [duplicate]

On slow connections (or if the server is randomly slow for some reason) it makes sense to have loading indicators. But when the connection is good, the req is too fast and the loading looks horrible. ...
3
votes
3answers
153 views

How to provide a visual indication that user needs to enter at least a few characters before an ajax search begins?

We have a large amount of users (e.g. a couple of millions) and we would like to start searching only after the user types in 2 characters or more. What visual indication can be provided to users in ...
4
votes
1answer
630 views

What are some accepted styles of Greeking for loading content?

There's a technique that Facebook uses in their Timeline where it'll show fake "content" blocks while it's waiting for the real content to load. From a distance, it looks like the content has already ...
3
votes
1answer
640 views

How best to show a document preview

I have a fairly basic web form that gathers information such as name, address, description, yada, yada. I have to do a rewrite and so am wondering what the best practice currently is to show a ...
0
votes
2answers
97 views

Cycling status links

Our web application has a calendar page which shows details of appointments. We train all users, but they are generally not tech-savvy. These appointments have one of several statuses: open ...