larry*wei 2014-07-21 10:52 采纳率: 0%
浏览 19

AJAX使用XML解析器吗?

does AJAX use XML parser? if yes where it uses it? I think the java-script engine on the client side use the DOM parser to retrieve the required information from the received XML document which is received from the server. Am I right or AJAX does not use XML parser at all!

  • 写回答

1条回答 默认 最新

  • 关注

    Ajax means asynchronous javascript and XML. http://www.w3schools.com/ajax/ajax_intro.asp

    I guess you know it is used to calling server outside normal request. What does that mean? Server response only to GET and POST requests, so if you need load additional data after page was loaded, let's say load XML file you call server and server will send you those data (received data from server will be in text format JSON, XML whatever you code them on server side).

    That part was to clarify you understand basics of AJAX, now to answer your question. In the previous link you have really nice example in which part Ajax uses XML files. In following link you can see processing of XML file received from server a http://www.w3schools.com/ajax/ajax_xmlfile.asp

    I hope this answers your question.

    评论

报告相同问题?

悬赏问题

  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办
  • ¥15 kylin启动报错log4j类冲突
  • ¥15 超声波模块测距控制点灯,灯的闪烁很不稳定,经过调试发现测的距离偏大
  • ¥15 import arcpy出现importing _arcgisscripting 找不到相关程序