TG.WXCRM.V4/WxService/html/go.html

34 lines
1.2 KiB
HTML

<html>
<head>
<title></title>
<script src="http://192.168.1.45:808/Scripts/jquery-1.8.2.min.js" type="text/javascript"></script>
<script type="text/javascript">
function GetQueryString(name)
{
var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
var r = window.location.search.substr(1).match(reg);
if(r!=null)return unescape(r[2]); return null;
}
function OpenFile(path) {
jQuery.support.cors = true;
$.ajax({
url: "http://192.168.1.45:809/FilePath.svc/GetPath/" + path,
type: "GET",
dataType: "jsonp",
loading: true,
success: function (data) {
$("#iframe1").attr("src",data.retmsg);
}, error: function () {
}
});
};
$(function(){
var id = GetQueryString("id");
OpenFile(id);
});
</script>
</head>
<body>
<iframe id="iframe1" width='100%' height='98%' scrolling='no' frameborder='0' src=''></iframe>
</body>
</html>