How to execute NoVNC by iframe

642 views
Skip to first unread message

Nadal Chang

unread,
Sep 28, 2017, 2:29:58 AM9/28/17
to noVNC

I can directly  run NoVNC on http://10.10.2.140/novnc/vnc.html. This is ok.

But when I coded it by iframe, such as below
 <iframe WIDTH="600" height="600" name="main1" src="10.10.2.140/novnc/vnc.html?" scrolling="yes" >

It get the error as below:
noVNC encountered an error:

Pierre Ossman

unread,
Sep 29, 2017, 10:08:22 AM9/29/17
to no...@googlegroups.com, Nadal Chang
On 28/09/17 08:29, Nadal Chang wrote:
>
> I can directly run NoVNC on http://10.10.2.140/novnc/vnc.html
> <http://xx.xx/novnc/vnc.html>. This is ok.
>
> But when I coded it by iframe, such as below
> <iframe WIDTH="600" height="600" name="main1"
> src="10.10.2.140/novnc/vnc.html?" scrolling="yes" >
>
> It get the error as below:
> noVNC encountered an error:
> 'Map' 未經定義
> http://10.10.2.140/novnc/vendor/browser-es-module-loader/dist/browser-es-module-loader.js:1374:1
>
> How can I use noVNC by iframe?
>

I seem to recall we had a problem with iframes recently and it was
fixed. Are you running the latest commit of noVNC?

Regards
--
Pierre Ossman Software Development
Cendio AB https://cendio.com
Teknikringen 8 https://twitter.com/ThinLinc
583 30 Linköping https://facebook.com/ThinLinc
Phone: +46-13-214600 https://plus.google.com/+CendioThinLinc

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
Reply all
Reply to author
Forward
0 new messages