小编Jes*_*rez的帖子

Hyperledger Composer不兼容的版本错误,版本相同

执行:

composer network ping -n calma-network -p hlfv1 -i admin -s adminpw
Run Code Online (Sandbox Code Playgroud)

我收到以下错误:

Error: Error trying to ping. Error: Composer runtime (0.8.0) is not compatible with client (0.11.0)
Command failed
Run Code Online (Sandbox Code Playgroud)

版本看起来一样:

composer -v

composer-cli                   v0.11.0
composer-admin                 v0.11.0
composer-client                v0.11.0
composer-common                v0.11.0
composer-runtime-hlf           v0.11.0
composer-runtime-hlfv1         v0.11.0
Run Code Online (Sandbox Code Playgroud)

hyperledger hyperledger-fabric hyperledger-composer ibm-blockchain

4
推荐指数
1
解决办法
2387
查看次数

使用JavaScript将子节点添加到内联SVG.在IE9上不合适?

我只想使用accion()javaScript函数在html上的SVG中添加一个新的文本节点:

<!DOCTYPE> 
<html>
<body>
<head>
<script type="text/javascript"> 
    function accion(){
        var SVGDocument = document.getElementById("idSVG");
        var text2 = SVGDocument.createTextNode("text");
        SVGDocument.appendChild(text2);
}       
</script>
</head>

<input type="button" onclick="accion()" value="GO!!"/>

<svg id="idSVG">
   <text id="texto" x="50" y="35" font-size="14">PRUEBA</text>
</svg>

</body>
</html>
Run Code Online (Sandbox Code Playgroud)

但是SVGDocument.createTextNode("text");返回一个错误:Object does not support this property or method.我认为问题是我无法正确引用idSVG元素.我正在使用IE9.

javascript svg dom internet-explorer-9

2
推荐指数
1
解决办法
3363
查看次数

使用 javascript 将表单提交到 iframe 目标

我正在尝试使用 POST 和参数将网页打开到 iframe 中。但是,当提交时,父页面会重新加载,并且 URL 不会在 iframe 中打开:

<head>
    <title>iframe Example</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <style>
    iframe {
        display: block;       /* iframes are inline by default */
        background: #000;
        border: none;         /* Reset default border */
        height: 90vh;        /* Viewport-relative units */
        width: 90vw;
    }
    </style>
    </head>
    <body>
    <form id="myForm" method="post" action= "http://127.0.0.1/myWeb" target="myIframe">
    <input type = "hidden" name="param1" value="param1value">
    <input type = "hidden" name="param2" value= "param1value">
    </form>
     <a href="" onClick="postLogin();" >Send to iframe</a><br />
    <script laguaje="javascript">
        function …
Run Code Online (Sandbox Code Playgroud)

html javascript iframe

2
推荐指数
1
解决办法
1万
查看次数