Eu tenho um botão com um onclick que chama a iniciaIframe função. Esta classe de função e passa uma url com uma imagem. Mas o erro retorna. A janela abre mas não traz a imagem. Alguém poderia me ajudar?
<a href="#" id="button-visao360" class="button visao360 gbox" onclick="iniciaIframe('.iframevisao3d', 'http://siteexample.com.br/EstruturaProdutos/Arquivo3D/cod_33044216/index.html')" rel="gboxmodal2;400;auto" style="display: block;">
<span>
Visão 360
</span>
</a>
<iframe id="ctl00_PlaceHolderMain_g_9d330d60_4ec4_4305_bca5_7754da46f3a6_ctl00_ucProdutoDetalhe_iframeVisao3dArquivo" width="360px" scrolling="no" height="350px" frameborder="0" marginheight="0" marginwidth="0" class="iframevisao3d"></iframe>
<script>
(function() {with (this[2]) {with (this[1]) {with (this[0]) {
return function(event) {iniciaIframe('.iframevisao3d', 'http://siteexample.com.br/EstruturaProdutos/Arquivo3D/cod_33044216/index.html') }
;}}}})
</script>
O error é:
<pre>SyntaxError: Unexpected token <
message: "Unexpected token <"
stack: (...)
get stack: function () { [native code] }
set stack: function () { [native code] }
__proto__: Error</pre>