《java web 编程技术》程序代码.pdf
还剩
97页未读,
继续阅读
下载文档到电脑,马上远离加班熬夜!
亲,很抱歉,此页已超出免费预览范围啦!
如果喜欢就下载吧,价低环保!
内容要点:
private String storeCustomer() { // E-G??úvíB5±,DBg String uniqueID = ""; Random randomizer = new Random(System.currentTimeMillis()); for(int i = 0; i < 8; i++) { uniqueID += randomi _____________________________________________________________________________Y /?c 14.15 CustomerListServlet.java package ajax.demo; import java.io.*; import java.net.*; import java.util.Random cell.appendChild(document.createTextNode(text)); return cell; } function handleDeleteStateChange() { if(xmlHttp.readyState == 4) { if(xmlHttp.status == 200) { deleteCustomerFromList(); } else { al } else { alert("#?tvJíA?? "); } } } function clearInputBoxes() { document.getElementById("custName").value = ""; document.getElementById("email").value = ""; document.getElementById("phon out.close(); } } _____________________________________________________________________________Y /?c 14.14 customerList.html Customer List var xmlHttp; var custName; var email; var phone; v Ajax1K¤//_ _____________________________________________________________________________Y /?c 14.13 ToolTipServlet.java package ajax.demo; import java.io.*; import java.util.HashMap; imp function handleStateChange () { if (xmlHttp.readyState == 4) { if (xmlHttp.status == 200) { setData(xmlHttp.responseXML); } } } function setData(dogData) { clearData(); setOffsets(); var desc student.add(new Student(2009, "class1", "Micheal Jordon")); student.add(new Student(2009, "class1", "Henry Smith")); student.add(new Student(2009, "class2", "Joeory Bush")); student.add(new Stud
发表评论
暂无评论,赶快抢占沙发吧。