c#(SVG)無重新整理,動態執行Javascript處理SVG物件:包含SVG的 頁面.aspx (一)
========== 包含SVG的 頁面 ==============
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="NodeSide.aspx.cs" Inherits="NodeSide" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>裝置佈置圖</title>
<script id="tscript" language="JavaScript"></script>
window.moveTo(0,0);
window.resizeTo(screen.availWidth,screen.availHeight);
function refreshSVG(){
tscript.src="ajax.aspx"; //執行 ajax.aspx , 返回javascript指令碼,並執行指令碼
//alert("refreshSVG");
}
</script>
</head>
<body bottomMargin="0" leftMargin="0" topMargin="0" rightMargin="0" scroll="no"><!-- onload="setInterval('drawNode()',5000)"-->
<form id="form1" runat="server">
<!-- src="userPos.svg" SVG的 動態載入.cs -->
<embed id="thesvgdoc" runat="server" type="image/svg+xml" src="test.SVG" width="100%" height="100%" pluginspage="http://www.adobe.com/svg/viewer/install/"></embed>
</form>
</body>
</html>