TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask YC: Ajax Basics Help

2 pointsby JimEnglandalmost 17 years ago
I am currently learning the basics of Ajax and going through tutorials. Right now, I'm learning how to build a simple RSS feed reader. All of the examples I have seen so far, however, use getElementByTagName() to go through the XML document by hard coding in each of the tag's names. This doesn't seem right to me, though; shouldn't I just be able to use the JavaScript DOM instead and write a script that would work regardless of XML input?<p>Here is the example I am working with: http://www.w3schools.com/Ajax/tryit.asp?filename=tryajax_httprequest_js4<p>Any help would be appreciated.

1 comment

Hates_almost 17 years ago
Have you looked into using jQuery for your AJAX and XML parsing?
评论 #219851 未加载