【天猫】双十一活动策划书;保守估计500万销售额,货值表
2015-11-06 12:16
295 查看
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>My JSP 'weather.jsp' starting page</title> <script type="text/javascript" src="${pageContext.request.contextPath }/js/jquery-1.5.js"></script> </head> <script type="text/javascript"> $().ready(function() { $("#text").focusout(function() { var vv = this.value; var myxml = '<?xml version="1.0" encoding="utf-8"?>' + '<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">' + '<soap12:Body><getWeatherbyCityName xmlns="http://WebXml.com.cn/">' + '<theCityName>'+ vv +'</theCityName>'+'</getWeatherbyCityName></soap12:Body></soap12:Envelope>'; $.ajax({ url:'http://www.webxml.com.cn/WebServices/WeatherWebService.asmx', dateType:'xml', type:'post', contentType:'application/soap+xml;charset="UTF-8"', data:myxml, success:function(dt){ $("#weather").empty(); $(dt).find("string").each(function() { var $div = $("<div/>"); $div.css("color","blue"); $div.text($(this).text()); $("#weather").append($div); $("#weather").append($("<br/>")); }); } },"xml"); }); }); </script> <body> 请输入城市:<input type="text" id="text"/> <div id="weather"></div> </body> </html>
相关文章推荐
- 利用itext生成pdf文档
- Windows8 Metro开发 (04) : 保存/读取本地应用程序设置
- HDU 5528【2015长春现场赛 B】 Count a * b
- 小议常被忽略的a标签:visited属性的特殊用法
- RAC优化大框架的分配(jumbo frame)
- 7.协议
- 黑马程序员------常用API-常见对象需要练习的方法列表
- hdu 5476 Explore Track of Point
- Windows8 Metro开发 (02) : AppBar控件之TopAppBar
- Zookeeper(分布式环境中数据强一致性)简介
- 转(解决GLIBC_2.x找不到的编译问题)
- Android——服务
- Exchange Online Protection Reports
- Mysql日期函数使用汇总
- C++ Primer 学习笔记_26_标准I/O库(续) --文件的输入与输出、字符串流
- 修改RHEL7/centos7网卡为eth0
- C++ Primer 学习笔记_25_标准I/O库 --面向对象的标准库、条件状态、输出缓冲区的管理
- C++ Primer 学习笔记_24_函数(续3) --重载函数、指向函数的指针
- Windows8 Metro开发 (03) : AppBar控件之BottomAppBar
- C++ Primer 学习笔记_23_函数(续2) --局部对象、内联函数、类的成员函数