[TW5] Iframe does not show up using Internet Explorer 11 / Edge

2,592 views
Skip to first unread message

cmag...@gmail.com

unread,
Nov 23, 2016, 8:08:21 AM11/23/16
to TiddlyWiki
I'm using iframes inside tiddlers to show local html documents. This works without issue using Firefox, Chrome or Safari. With Internet Explorer 11 or Microsoft Edge, the iframe content stays empty. Does someone have an idea how to solve it?

For example:

In the tiddler:

<iframe src="dummy.html" width="100%" height="800"></iframe>


In dummy.html :

<!DOCTYPE html>
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="content-type">
    <title>Test</title>
  </head>
  <body>
    <p>Test</p>
  </body>
</html>

Christophe Magnard

unread,
Nov 23, 2016, 1:46:25 PM11/23/16
to tiddl...@googlegroups.com
I continued to look for a solution, found something not really ideal, but maybe it can help someone understand...

If I remove <!-- saved from url=(0021)http://tiddlywiki.com --> from my TiddlyWiki html file, the iframe shows up using IE / Edge (after some ActiveX complaints using IE, no issue with Edge)

Alternatively, if I modify my dummy.html file by adding <!-- saved from url=(0021)http://tiddlywiki.com -->, the iframe shows up using IE / Edge (after restarting the browser).

In that case, dummy.html is then:

<!DOCTYPE html>
<!-- saved from url=(0021)http://tiddlywiki.com -->

<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="content-type">
    <title>Test</title>
  </head>
  <body>
    <p>Test</p>
  </body>
</html>

I also have no problem showing iframes of external webpages using IE / Edge.

Note that I have this behavior on two different computers, with both a heavily modified TiddlyWiki as well as with the newly downloaded empty TiddlyWiki.

Jeremy Ruston

unread,
Nov 23, 2016, 2:01:30 PM11/23/16
to tiddl...@googlegroups.com
Hi Christophe

Interesting. It certainly sounds like a security measure on Microsoft’s part to restrict iframes targeting local files. I wonder if you can turn the TW HTML file into some kind of privileged app by adding a manifest file?

Best wishes

Jeremy


On 23 Nov 2016, at 18:46, Christophe Magnard <cmag...@gmail.com> wrote:

I continued to look for a solution, found something not really usable, but maybe it can help someone understand...

If I modify my dummy.html file by adding <!-- saved from url=(0021)http://tiddlywiki.com -->, the iframe shows up using IE / Edge (after restarting the browser).


dummy.html is then:

<!DOCTYPE html>
<!-- saved from url=(0021)http://tiddlywiki.com -->
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="content-type">
    <title>Test</title>
  </head>
  <body>
    <p>Test</p>
  </body>
</html>

I also have no problem showing iframes of external webpages using IE / Edge. And I also have no problem displaying iframes in normal html files (not TiddlyWiki).


Note that I have this behavior on two different computers, with both a heavily modified TiddlyWiki as well as with the newly downloaded empty TiddlyWiki.


--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/976af103-7266-446c-b7c1-ca1cc31916c0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Christophe Magnard

unread,
Nov 24, 2016, 10:49:15 AM11/24/16
to TiddlyWiki
So, I went for the following solution... not fully satisfying, but good enough for my needs.

- Deleted the two comments at the beginning of the TiddlyWiki file:

<!-- The following comment is called a MOTW comment and is necessary for the TiddlyIE Internet Explorer extension -->

<!-- saved from url=(0021)http://tiddlywiki.com -->

- Deleted the same lines from $:/core/templates/MOTW.html

Now it fully works on Edge.

On Internet Explorer, I get an ActiveX warning when opening the TiddlyWiki (actually I first got 2 consecutive warnings, but could remove the first one as follows: Internet Options -> Advanced -> Security and tick the box Allow active content to run in files on My Computer) and I had to disable the TiddlyIE add-on to be able to save the file. Anyway, hopefully IE will not be used much longer...
Reply all
Reply to author
Forward
0 new messages