Hi! I've got some basic javascript and XML skills. I'm wanting to learn about AJAX but preferably without .asp or some other technology involved (I'm not running .asp on my server).

Are there any books you guys can recommend to me?

Thanks!

THT

Dani AI

Generated

For : with basic JavaScript and XML already in hand, the shortest practical path is to learn the client APIs (modern Fetch, plus XMLHttpRequest for older-compatibility), practise exchanging JSON payloads, and run examples from a simple static HTTP server so no ASP or other server stack is required. 's recommendation of Head Rush Ajax is a decent historical intro to the AJAX pattern; pair it with Fetch-focused material to learn current best practices. For exercise-based learning (as asked by ), Eloquent JavaScript provides end-of-chapter exercises that reinforce the basics.

Recommended concise, up-to-date references:

Simple local practice setup and minimal pattern (HTTP required, not file://):

python3 -m http.server 8000
async function loadJson() {
  const res = await fetch('data.json');
  if (!res.ok) throw new Error(res.status);
  const data = await res.json();
  console.log(data);
}
loadJson().catch(err => console.error('Fetch error:', err));

Troubleshooting notes: serve pages over HTTP to avoid file:// origin problems; use the browser Network panel to inspect request headers, status, and response body; ensure the server sends Content-Type: application/json for JSON files; watch for CORS when calling remote APIs (preflight/headers). For legacy browsers without Fetch (for example IE11), use XMLHttpRequest or a Fetch polyfill.

Recommended Answers

All 2 Replies

'Head Rush Ajax' is certainly a good book to start off with. You can read the book review

Explore that site and read the reviews of some other Ajax books to get the feel of things.

Do you guys know any Ajax books provides problems/exercise at the end of every chapter? like the books used on college teaching.

Thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.