<div dir="ltr"><div dir="ltr"><div>Hi.</div><div>The code of a scene began not working after adding alert test message:</div><div><br></div><div><html><br><head><br>    <meta http-equiv="X-UA-Compatible" content="IE=edge"/><br>    <title>My first X3DOM page</title><br>    <script type='text/javascript' src='<a href="https://www.x3dom.org/download/x3dom.js">https://www.x3dom.org/download/x3dom.js</a>'> </script><br>    <link rel='stylesheet' type='text/css' href='<a href="https://www.x3dom.org/download/x3dom.css">https://www.x3dom.org/download/x3dom.css</a>'><br>    <script><br>        function changeColor()<br>        {<br>            if(document.getElementById("color").getAttribute('diffuseColor')=="1 0 0")<br>                document.getElementById("color").setAttribute('diffuseColor', '0 0 1');<br>            else<br>                document.getElementById("color").setAttribute('diffuseColor', '1 0 0');<br>        }<br>    </script><br>    <style><br>        x3d<br>        {<br>            border:2px solid darkorange;<br>            background: rgba(128, 128, 128, 0.4);<br>        }</div><div>        body<br>        {<br>            font-size:110%;<br>            font-family:verdana, sans-serif;<br>            background-image: url('pattern.png');<br>            margin: 3em;<br>            color: lightgray;<br>        }</div><div>        h1<br>        {<br>            color: darkorange;<br>        }<br>    </style><br></head><br><body></div><div><h1>Hello, X3DOM!</h1><br><p><br>    This is my first html page with some 3d objects.<br></p><br><x3d width='500px' height='400px'><br>    <scene><br>        <shape onclick="changeColor();"><br>            <appearance><br>                <material id ="color" diffuseColor='1 0 0'></material><br>            </appearance><br>            <box></box><br>        </shape><br>        <transform translation='-3 0 0'><br>            <shape><br>                <appearance><br>                    <material diffuseColor='0 1 0'></material><br>                </appearance><br>                <cone></cone><br>            </shape><br>        </transform><br>        <transform translation='3 0 0'><br>            <shape><br>                <appearance><br>                    <material diffuseColor='0 0 1'></material><br>                </appearance><br>                <sphere></sphere><br>            </shape><br>        </transform><br>    </scene><br></x3d><br><div id="digital_download"><br>A<br></div></div><div><script src="<a href="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.js">http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.js</a>"></script><br><script><br>$('#digital_download').html('Downloading...'); // Show "Downloading..."<br>// Do an ajax request<br>$('#digital_download').load('<a href="http://localhost/index2.php'">http://localhost/index2.php'</a>);<br>alert("YES");<br>if (document.getElementById('digital_download').innerHTML=="Hello!") alert("yes");</div><div></script></div><div><br></body><br></html> <br><br></div><div><br></div><div>The simple alert is added or innerHTML check.</div><div>Why it can be and strangely there are so many difficulties even on simple examples. Magic tricks are sometimes needed :)</div><div>Waiting for the help,</div><div><br></div><div>Konstantin</div><div><br></div><div><br></div></div></div>