锘??xml version="1.0" encoding="utf-8" standalone="yes"?>成人h视频在线,精品国产乱码久久久久久影片,国产欧美日韩精品专区http://www.aygfsteel.com/Blake/category/1588.htmlJava Toxication!zh-cnTue, 27 Feb 2007 12:59:03 GMTTue, 27 Feb 2007 12:59:03 GMT60'AJAX in Action' on JavaRSShttp://www.aygfsteel.com/Blake/articles/5471.htmlBlake HANBlake HANThu, 02 Jun 2005 08:25:00 GMThttp://www.aygfsteel.com/Blake/articles/5471.htmlhttp://www.aygfsteel.com/Blake/comments/5471.htmlhttp://www.aygfsteel.com/Blake/articles/5471.html#Feedback0http://www.aygfsteel.com/Blake/comments/commentRss/5471.htmlhttp://www.aygfsteel.com/Blake/services/trackbacks/5471.htmlJavaRSS, an aggregation site, has published an article called "AJAX in Action," showing how AJAX is being used on the site to display summaries of items based on mouseover, rather than including the summaries in the home page. Benefits for JavaRSS included a front page that was much smaller and, thus, much faster on initial load.

The heart of the AJAX functionality is in this code, which talks to a custom JSP page on JavaRSS to retrieve the description:

function getDescription(channelId,itemId) {
  
var url = 'http://localhost:8080/getDescription.jsp?channelId=' + channelId + '&itemId=' + itemId;
  if (window.XMLHttpRequest) {
    req 
= new XMLHttpRequest();
  } 
else if (window.ActiveXObject) {
    req 
= new ActiveXObject("Microsoft.XMLHTTP");
  }
  req.onreadystatechange 
= processRequest;
  req.open(
"GET", url, true);
  req.send(
null);
}

function processRequest() {
  
if (req.readyState == 4) {
    
if (req.status == 200) {
      parseMessages();
    } 
else {
      alert ( 
"Not able to retrieve description" );
    }
  }
}

function parseMessages() {
  response 
= req.responseXML.documentElement;
  itemDescription 
= response.getElementsByTagName('description')[0].firstChild.data;
  alert ( itemDescription );
}


There has been a large amount of AJAX-related content on the Internet lately. Is AJAX poised to revolutionize the web user interface? Also, JavaRSS uses a setting to enable AJAX in the user interface. How are you handling cases where the browser might not be able to handle AJAX? What about accessibility? Has anyone worked out how to handle blind users' interactions with AJAX?



Blake HAN 2005-06-02 16:25 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 高青县| 贵定县| 永吉县| 滕州市| 海淀区| 眉山市| 昆山市| 诸城市| 思茅市| 石屏县| 晋州市| 海城市| 伊春市| 通榆县| 吉林省| 赤峰市| 芜湖市| 汽车| 南郑县| 海口市| 上高县| 和平区| 兰坪| 紫金县| 莱州市| 财经| 台州市| 威宁| 泰和县| 师宗县| 济南市| 咸阳市| 扬中市| 玉门市| 潮州市| 丰顺县| 博湖县| 廊坊市| 烟台市| 泗洪县| 淳安县|