AJAX (Asynchronous Javascript And XML) is a popular technique for creating interactive websites.

learn more… | top users | synonyms

41
votes
8answers
5k views

How do I get started with HTML5? [closed]

What is the recommended workflow to learn HTML5? What tools should I install? What SDK? Where to start? How to test? How to debug? What do I read? I understand that what is often labelled as "HTML5 ...
40
votes
6answers
3k views

How safe are hidden AJAX requests that fake performance?

What is a hidden AJAX request? I've noticed an increase in the usage of hidden AJAX requests designed to make a user's action appear to happen immediately. I'll refer to this type of AJAX request as ...
36
votes
2answers
20k views

When not to use Google Web Toolkit? [closed]

I'm considering use of GWT on a major in-house web app development project, namely it's major advantage in my eyes is the cross-compilation to Javascript which would (at least theoretically) help my ...
19
votes
12answers
2k views

How to talk a client out of a Flash website? [closed]

I have recently been doing a bunch of web side projects through word of mouth recommendations only. Although I am much more a of a programmer than a designer by any means, my design skills are not ...
10
votes
1answer
1k views

Patterns for ajax-heavy web applications

Up until now, I've been a great fan of the MVC pattern for developing web applications. For the web, I've developed mostly in PHP (with the Kohana and CodeIgniter frameworks) and Ruby (RoR). As my ...
9
votes
5answers
1k views

How do web servers enforce the same-origin policy?

I'm diving deeper into developing RESTful APIs and have so far worked with a few different frameworks to achieve this. Of course I've run into the same-origin policy, and now I'm wondering how web ...
9
votes
7answers
2k views

Would using AJAX extensively improve server performance?

Clearly AJAX improves the user interface but does this also decrease server load? You would think it does because the entire page will not have to be served up each time, but maybe there are other ...
9
votes
1answer
923 views

Who first created or popularized the original XMLHTTPRequest / MSXML?

I'm trying to understand the origins of AJAX, and think MSXML and XMLHTTPRequest were the objects that started it all. Which came first, and/or became the defacto way to create dynamic pages?
8
votes
3answers
400 views

Is maintaining Heavily Ajax-Based Web Apps more difficult?

Maybe I'm doing it wrong, but in my experience, developing and maintaining heavily ajax-based web apps is much more difficult then a "more standard" web app. I'm not talking about an app that uses ...
7
votes
9answers
1k views

Is it worth Learning XML as a web developer when JSON is better for AJAX? [duplicate]

Is it worth Learning XML as a web developer when JSON is better for AJAX? or is it better to concentrate on JSON/Javascript for AJAX?
7
votes
4answers
2k views

Does business logic really belong on the server?

A typical stack for a web application is a database, a server with server-side code, and a user with a browser with HTML/CSS/JavaScript. Before extensive AJAX, MVC in which the controller was the ...
7
votes
5answers
1k views

What are the steps to learn AJAX based web application development? [closed]

I am a complete starter in web development, as I know only basics of HTML and CSS, although I have a history of desktop development. What is the usual roadmap to get started in web apps, based on ...
7
votes
6answers
2k views

Triggering custom events in AJAX callbacks

I'm pretty new to JavaScript, but one of the things that's been frustrating is that our AJAX callbacks have been getting packed with different functionality, making it difficult to keep everything ...
6
votes
5answers
484 views

ASP.NET AJAX and my axe!

So, I'm seriously considering axing ASP.NET AJAX from my future projects as I honestly feel it's too bloated, and at times convoluted. I'm also starting to feel it is a dying library in the .NET ...
6
votes
2answers
609 views

How does “new message” notification work?

I'm interested to know the implementation of the 'new message' in gmail for example. I know that ajax is used, but what else it is used on the server and client side. Can you explain me the scenario? ...
6
votes
3answers
1k views

Should jQuery DOM manipulation be avoided in favor of JavaScript template engines?

From what I can tell, most developers will use heavy jQuery DOM manipulation tactics to deliver their updated AJAX views. Once things get out of hand, they may consider refactoring using template ...
6
votes
3answers
260 views

Proper Response to HTTP Request When Too Much Data is Requested

I'm building an API for an ad serving platform that will allow you to request tracker data for ad campaigns. Campaigns often exceed hundreds of millions of requests, which means there will be many ...
5
votes
9answers
1k views

A friend wants some FREE CRUD code [closed]

A 'friend' of mine asked me to write a complete CRUD system with AJAX for him for free. What should I do? Technically, its bread and butter for me. However, I am wondering if I should get paid for it. ...
5
votes
7answers
4k views

Is it necessary to memorize code?

I am a new developer, who just got hired at a big company. I don't know how but I guess they are desperate. However, I am well-versed with HTML5/CSS3 though things change and new things are released ...
5
votes
4answers
1k views

Do i need to know how Ajax works since Asp.net provides me UpdatePanel [closed]

I am working on Asp.net webform and it already provides me ready to user Ajax solution by using an update panel, so should I invest my time learning how Ajax really work ?
5
votes
3answers
2k views

Ajax race conditions

Is there a pattern or standard way to handle Ajax race conditions? Take the following example. You have two tables. Clicking a row on table 1 removes the data from DB and then updates table 2 (which ...
5
votes
4answers
3k views

What to call pure JavaScript standalone (web)apps for which I've not written any server side code? [closed]

I've been writing a few tools as standalone webapps for which I have written no server side code and it strikes me that I'm not sure what people call such things. I like them because they can be ...
5
votes
2answers
490 views

I'm using JSON and degrading gracefully, so how do I prevent duplicate code?

There are a bunch of questions on Stack Overflow about whether AJAX should return JSON or HTML, and most seem to agree that it is ideal to return JSON for the sake of speed. However, that means that ...
5
votes
2answers
490 views

How can I design an efficient moderation system for comments?

Here's the job I want to do: My project is a website where there will be a lot of comments. Those comments will be moderated: a moderator will connect, see comments and accept or refuse them. I need ...
5
votes
6answers
689 views

when to load partial views

When creating a website, when should you load partial view and when should you do a complete page refresh? I was looking at github's site and noticed that pretty much the only place they do partial ...
4
votes
2answers
450 views

Do ASP.Net Web Forms actually produce ADA compliant HTML? Does the ASP/AJAX toolkit undermine the goal of ADA compliance?

I'm trying to convince my employer to let us use the Microsoft ASP/AJAX toolkit since it simplifies the implementation of many controls. However they have rejected the idea on the grounds that it ...
4
votes
1answer
258 views

I read Pro ASP .NET MVC 2 Framework - anything else for AJAX in MVC 2?

I read Pro ASP .NET MVC 2 Framework to try and learn the ASP .NET MVC Framework, but I'm really struggling with Ajax in MVC even after going over that chapter again and again. I seem to have a decent ...
4
votes
1answer
645 views

How should I handle a redirect to an identity provider during a web api data request

Scenario I have a single-page web app consisting purely of html, css, and javascript. After initial load and during use, it updates various views with data from one or more RESTful apis via ajax ...
3
votes
1answer
202 views

Is there a name for web applications that do most of the navigation on the client side?

Does the web industry have any standard or common name that refers specifically to web applications that don't use the conventional window-HTTP-navigation model, instead relying on mostly or wholly on ...
3
votes
3answers
197 views

Are there algorithims for polling optimization?

I have a web-application with an async HTTP backend, which gets called by the client by AJAX requests. The client has to start a job and then polls for the result. I started with a simple 150ms ...
3
votes
2answers
409 views

what receives an ajax call?

I'm making a site which should (a) take information from the user in the form of files and forms, (b) take that data to the server to be run on a C application, and (c) take the result back and show ...
3
votes
3answers
1k views

Is dynamic HTML layout good from an SEO perspective?

Just wondering whether dynamically built HTML layout is fine from SEO perspectives? So let's assume e-commerce engine and its most popular page - products catalog. So 90% of the page is built using ...
3
votes
1answer
2k views

How to generate nonce for Ajax web requests

As many of you know WordPress uses "secret key" like thing for every AJAX request. Making each request unique and also 'somewhat' secure (just a step ahead than nothing). How would I implement the ...
3
votes
3answers
832 views

What are best practices for caching paginated results whose ordering/properties can change?

What is the best practice for caching paginated search results whose ordering/properties can be changed? Say, in my application, someone wants to see the last 20 discussion threads (out of 10,000). A ...
3
votes
5answers
1k views

Pure Front end JavaScript with Web API versus MVC views with ajax

This was more a discussion for what peoples thoughts are these days on how to split a web application. I am used to creating an MVC application with all its views and controllers. I would normally ...
3
votes
5answers
3k views

How much AJAX is too much?

My current project is part of a highly linked architecture, with individual systems each owning certain pieces of data, and exposing them RESTfully. Both our web services and our user interface take ...
3
votes
3answers
148 views

how should I handle server error during ajax logout?

I need to write a handler for server error during user logout. What is a common practice? ajax.post({ url: '/auth/logout' }).done(function (response) { switch (response.statusCode) { ...
3
votes
1answer
158 views

AJAX IRCX Client and Server

I am currently developing an IRCX AJAX Chat Based system and have a few questions regarding the Server and Client implementation. Any suggestions are welcome: Server: Should this be implemented as a ...
3
votes
1answer
252 views

Should JavaScript and PHP objects be treated as different objects in an interaction diagram?

I'm drawing a communication diagram for an application where you can buy books. I'm using domain-driven design and have a 'shop' object, a 'cart' object, and a 'book' object. My first communication ...
3
votes
2answers
330 views

Displaying items with a countdown timer

I am creating a widget for rotating topics. The functionality is as follows: Each topic is displayed one by one on the homepage and has a duration of 30 seconds. A countdown timer is displayed on ...
2
votes
1answer
171 views

How to check for vulnerabilities in web application [closed]

I have developed a web application using zend framework, mysql, and other client side technologies like javascript, jquery ajax, kendo grid, and so on. I have completed development and have done ...
2
votes
2answers
197 views

Why should I should url routes to the user in a single page application?

Why a single page application is a desktop client replacement why should I show certain url`s in the url bar of the browser. Why is mysite.com not enough. My question to you guys is now: What are ...
2
votes
4answers
1k views

Easiest way to create static HTML file with sortable and filterable table?

I want to create a static HTML file I can email to someone with a lot of data, and have that data sortable and filterable. What is the easiest to use library or package I can use to get this off the ...
2
votes
3answers
2k views

What technologies are used for an Android/iPhone App to interact with a database

Do Android/iPhone Apps use AJAX to interact with the backend? If yes, is this common? Or do most apps use a different method for fetching database information. And if so, what other methods are there? ...
2
votes
1answer
239 views

JavaScript Compression and Caching of Assets

I'm working on an idea that i can't seem to find a good answer though hours and hours of searching, I'm planning a small Canvas/WebGL Application this application will be using WebSockets to talk to ...
2
votes
1answer
1k views

best way to store data from ajax call

I am writing a web-application in which I am retrieving data's from server through AJAX requests and the generate HTML content dynamically. I have some data to load, generate HTML from it and append ...
2
votes
2answers
1k views

how to choose a web framework and javascript library?

I've been procrastinating learning some framework for web apps w/ some library for AJAX, something like django with prototype, or turbogears with mootools, or zeta components with dojo, grok, jquery, ...
2
votes
1answer
57 views

How is same-origin policy implemented?

I was looking at cross-domain requests for a design and stumbled upon something that puzzles me. From a local site I'm firing an Ajax request to another domain (with jQuery and vanilla ...
2
votes
1answer
282 views

What architecture to use for AJAX calls?

I am working on a website with PHP as backend. There are things from the front-end which I'd like to accomplish using AJAX calls. Which of these methods should I use to design them and why? Call to ...
2
votes
1answer
104 views

Caching large amount of ajax returned objects

I'm building an application which fetches large amount of items with ajax requests via other application API. It returns me 6k - 30k js objects which are used multiple times across various application ...