Hilfe durchsuchen

Vorsicht vor Support-Betrug: Wir fordern Sie niemals auf, eine Telefonnummer anzurufen, eine SMS an eine Telefonnummer zu senden oder persönliche Daten preiszugeben. Bitte melden Sie verdächtige Aktivitäten über die Funktion „Missbrauch melden“.

Learn More

Iframe not displaying in FF v64.0 (64bit windows) (NIST time html5)

  • 3 Antworten
  • 1 hat dieses Problem
  • 3 Aufrufe
  • Letzte Antwort von Pj

more options

when I try to display NIST using its HTML5 script - it only shows blank square

here is the code that was provided

what do I do to fix this??? (does not display in current versions of IE or Palemoon browsers either)


<iframe src="https://time.gov/widget/embedNISTwidget.html"

       style="border:0px #ffffff none;" name="nisttimewidget"
       scrolling="no" marginheight="0px" marginwidth="0px"
       allowfullscreen="" width="200px" frameborder="1" height="165px">
     </iframe>

and the source of the page for NISTwidget (which displays when accessed)


PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<title>The Official NIST US Time Widget - HTML5 for cross-platform devices</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="X-UA-Compatible" content="chrome=1"><meta name="viewport" content="width=device-width; initial-scale=1.0;"><script type="text/javascript" src="lps/includes/embed-compressed.js"></script><style type="text/css"> html, body { /* http://www.quirksmode.org/css/100percheight.html */ height: 100%; /* prevent browser decorations */ margin: 0; padding: 0; border: 0 none; } body { background-color: #ffffff; } img { border: 0 none; } </style> <center>

<script type="text/javascript" defer> lz.embed.resizeWindow('178', '125'); lz.embed.dhtml({url: 'nist_time.lzx.js', lfcurl: 'lps/includes/lfc/LFCdhtml.js', serverroot: 'lps/resources/', bgcolor: '#ffffff', width: '178', height: '125', id: 'lzapp', accessible: 'false', cancelmousewheel: false, cancelkeyboardcontrol: false, skipchromeinstall: false, usemastersprite: false, approot: '', appenddivid: 'appcontainer'}); lz.embed.applications.lzapp.onload = function loaded() { // called when this application is done loading var el = document.getElementById('lzsplash'); if (el.parentNode) { el.parentNode.removeChild(el); } } </script> </center>

when I try to display NIST using its HTML5 script - it only shows blank square here is the code that was provided what do I do to fix this??? (does not display in current versions of IE or Palemoon browsers either) ---------------------- <iframe src="https://time.gov/widget/embedNISTwidget.html" style="border:0px #ffffff none;" name="nisttimewidget" scrolling="no" marginheight="0px" marginwidth="0px" allowfullscreen="" width="200px" frameborder="1" height="165px"> </iframe> -------------------------- and the source of the page for NISTwidget (which displays when accessed) <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html><head> <title>The Official NIST US Time Widget - HTML5 for cross-platform devices</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="X-UA-Compatible" content="chrome=1"><meta name="viewport" content="width=device-width; initial-scale=1.0;"><script type="text/javascript" src="lps/includes/embed-compressed.js"></script><!--[if lt IE 9]><script type="text/javascript" src="lps/includes/excanvas.js"></script><![endif]--><style type="text/css"> html, body { /* http://www.quirksmode.org/css/100percheight.html */ height: 100%; /* prevent browser decorations */ margin: 0; padding: 0; border: 0 none; } body { background-color: #ffffff; } img { border: 0 none; } </style><!--[if IE]> <style type="text/css"> /* Fix IE scrollbar braindeath */ html { overflow: auto; overflow-x: hidden; } </style> <![endif]--></head> <!-- <body bgcolor=black link=#cedbd2 alink=#0000aa vlink=#cedbd2> --> <center> <div id="appcontainer"></div><div id="lzsplash" style="z-index: 10000000; top: 0; left: 0; width: 178px; height: 125px; position: fixed; display: table"><p style="display: table-cell; vertical-align: middle;"></p></div><script type="text/javascript" defer> lz.embed.resizeWindow('178', '125'); lz.embed.dhtml({url: 'nist_time.lzx.js', lfcurl: 'lps/includes/lfc/LFCdhtml.js', serverroot: 'lps/resources/', bgcolor: '#ffffff', width: '178', height: '125', id: 'lzapp', accessible: 'false', cancelmousewheel: false, cancelkeyboardcontrol: false, skipchromeinstall: false, usemastersprite: false, approot: '', appenddivid: 'appcontainer'}); lz.embed.applications.lzapp.onload = function loaded() { // called when this application is done loading var el = document.getElementById('lzsplash'); if (el.parentNode) { el.parentNode.removeChild(el); } } </script><noscript> Please enable JavaScript in order to use this application. </noscript> </center> </body></html>

Alle Antworten (3)

more options

DanOfWA said

When I try to display NIST using its HTML5 script - it only shows a blank square. What do I do to fix this?

You could try the Flash Version:
https://www.time.gov/ie/

<embed src="https://time.gov/ie/altFlash.swf" style="WIDTH: 430px; HEIGHT: 200px;" type="application/x-shockwave-flash" data="https://time.gov/ie/altFlash.swf" pluginspage="https://www.macromedia.com/go/getflashplayer"> </embed>



~Pj

Geändert am von Pj

more options

This widget is send with X-Frame-Options: ALLOWALL. ALLOWALL is not a valid value for this HTTP response headers item. A website needs to disable sending the X-Frame-Options header to allow all domains.

This specific header prevents Firefox from embedding the widget in an iframe.

It work if I open the widget in a tab, but not in an iframe.


more options

DanOfWA said

Updated Reply

~Pj