Recent answers to Embedded web pages won't display my java scripting on a certain site, but works fine when I view it from the server. How can I fix this so anyone can see it?https://support.mozilla.org/en-US/questions/10967692015-12-06T06:24:47-08:00Did you try to contact them for support about this issue?
I don't know what an iframe has to do with2015-12-06T06:24:47-08:00cor-elhttps://support.mozilla.org/en-US/questions/1096769?page=2#answer-814635<p>Did you try to contact them for support about this issue?
</p><p>I don't know what an iframe has to do with JavaScript and why they do not allow an OBJECT with a data attribute, but embed won't work in Firefox with HTML content.
So you are out of luck in Firefox with the restrictions posed by the website with regard to IFRAME and OBJECT.
</p>As I stated before they do not allow javascript.
See screenshot. http://screencast.com/t/ioVQFCeiM0U2015-12-05T14:18:36-08:00JeremyChristopher74https://support.mozilla.org/en-US/questions/1096769?page=2#answer-814440<p>As I stated before they do not allow javascript.
See screenshot. <a href="http://screencast.com/t/ioVQFCeiM0Un" rel="nofollow">http://screencast.com/t/ioVQFCeiM0Un</a>
</p>Doesn't the website allow to add a data attribute to an object tag?
That would explain why you would2015-12-05T14:03:12-08:00cor-elhttps://support.mozilla.org/en-US/questions/1096769?page=2#answer-814436<p>Doesn't the website allow to add a data attribute to an object tag?
</p><p>That would explain why you would see an empty block instead of of the embedded content.
</p><p>If that isn't allowed then you need to use an iframe like I initially suggested in my first reply.
</p>
<pre>&lt;iframe src="<a href="http://domania.us/shuckyducky/Fubar/help/achievements" rel="nofollow">http://domania.us/shuckyducky/Fubar/help/achievements</a>" height="700" width="450"&gt;
</pre>cor-el said
This Data URI can't be used this way because it includes HTML code and is actually an 2015-12-05T13:46:09-08:00JeremyChristopher74https://support.mozilla.org/en-US/questions/1096769?page=2#answer-814433<p><em>cor-el <a href="#answer-814424" rel="nofollow">said</a></em>
</p>
<blockquote>
This Data URI can't be used this way because it includes HTML code and is actually an encoded web page.
You pasted the base64 code as text.
Why don't you replace the EMBED element with the OBJECT element and leave out the nested EMBED as it isn't needed?
<pre>&lt;object data="<a href="http://domania.us/shuckyducky/Fubar/help/achievements" rel="nofollow">http://domania.us/shuckyducky/Fubar/help/achievements</a>" height="700" width="450"&gt;
&lt;param name="wmode" value="opaque"&gt;
&lt;param name="allownetworking" value="internal"&gt;
&lt;param name="allowscriptaccess" value="Never"&gt;
&lt;/object&gt; </pre>
<p>That should work.
I don't know if the param tags have any effect because you aren't using a plugin, but merely open an HTML file.
</p><p>Can you create a test page with this modification if you do not want to do this on the current page?
</p>
</blockquote>
<p>When I add this code above it comes out like this in the source viewer..
</p><p>&lt;object height="700" width="450"&gt;<br>&lt;param name="wmode" value="opaque"&gt;<br>&lt;param name="allownetworking" value="internal"&gt;<br>&lt;param name="allowscriptaccess" value="Never"&gt;<br>&lt;/object&gt;
</p>We had discovered yesterday that the site is somehow stripping the word "data" after the <object.2015-12-05T13:10:53-08:00JeremyChristopher74https://support.mozilla.org/en-US/questions/1096769?page=2#answer-814428<p>We had discovered yesterday that the site is somehow stripping the word "data" after the &lt;object.
&lt;/p&gt;</p>cor-el said
Did you paste the Data URI with the bas64 encode including data:text/html;charset=utf-2015-12-05T13:08:37-08:00JeremyChristopher74https://support.mozilla.org/en-US/questions/1096769?page=2#answer-814427<p><em>cor-el <a href="#answer-814425" rel="nofollow">said</a></em>
</p>
<blockquote>
Did you paste the Data URI with the bas64 encode including <b>data:text/html;charset=utf-8;base64,</b> in the location bar in Firefox and in Google Chrome to see how this works?
</blockquote>
<p>Yes, I believe I did that yesterday in the address bar and it worked in both browsers.
</p>Did you paste the Data URI with the bas64 encode including data:text/html;charset=utf-8;base64, in t2015-12-05T12:51:47-08:00cor-elhttps://support.mozilla.org/en-US/questions/1096769?page=2#answer-814425<p>Did you paste the Data URI with the bas64 encode including <b>data:text/html;charset=utf-8;base64,</b> in the location bar in Firefox and in Google Chrome to see how this works?
</p>This Data URI can't be used this way because it includes HTML code and is actually an encoded web pa2015-12-05T12:48:43-08:00cor-elhttps://support.mozilla.org/en-US/questions/1096769?page=2#answer-814424<p>This Data URI can't be used this way because it includes HTML code and is actually an encoded web page.
</p><p>You pasted the base64 code as text.
</p><p>Why don't you replace the EMBED element with the OBJECT element and leave out the nested EMBED as it isn't needed?
</p>
<pre>&lt;object data="<a href="http://domania.us/shuckyducky/Fubar/help/achievements" rel="nofollow">http://domania.us/shuckyducky/Fubar/help/achievements</a>" height="700" width="450"&gt;
&lt;param name="wmode" value="opaque"&gt;
&lt;param name="allownetworking" value="internal"&gt;
&lt;param name="allowscriptaccess" value="Never"&gt;
&lt;/object&gt; </pre>
<p>That should work.
I don't know if the param tags have any effect because you aren't using a plugin, but merely open an HTML file.
</p><p>Can you create a test page with this modification if you do not want to do this on the current page?
</p>Not sure I fully understand but I think I might.
Adding the Base64 encoded text to my page adds exac2015-12-05T12:32:41-08:00JeremyChristopher74https://support.mozilla.org/en-US/questions/1096769?page=2#answer-814422<p>Not sure I fully understand but I think I might.
</p><p>Adding the Base64 encoded text to my page adds exactly that.. it doesn't create anything it's suppose to and actually just shows the letters and numbers on my page.. I left it there so you can see what I am talking about.
</p><p>Is there more to it than just adding the long line?
</p>I posted the base64 encoded data URI to void issues with pasting this code in the location/address b2015-12-05T07:24:58-08:00cor-elhttps://support.mozilla.org/en-US/questions/1096769?page=2#answer-814323<p>I posted the base64 encoded data URI to void issues with pasting this code in the location/address bar.
You can inspect the actual HTML code via "View Page Source" in the right-click context menu once you have opened this page via the via the location/address bar.
</p><p>In your HTML file you use the not encoded object version.
</p><p>Base64 encoded:
</p>
<pre>PG9iamVjdCBkYXRhPSJodHRwOi8vZG9tYW5pYS51cy9zaHVja3lkdWNreS9GdWJhci9oZWxwL2FjaGlldmVtZW50cyIgd2lkdGg9IjUwMCIgaGVpZ2h0PSI3MDAiPjwvb2JqZWN0Pg==
</pre>
<p>Decodes as:
</p>
<pre>&lt;object data="<a href="http://domania.us/shuckyducky/Fubar/help/achievements" rel="nofollow">http://domania.us/shuckyducky/Fubar/help/achievements</a>" width="500" height="700"&gt;&lt;/object&gt;
</pre>
<hr>
<p>Base64 encoded:
</p>
<pre>PG9iamVjdCBkYXRhPSJodHRwOi8vZG9tYW5pYS51cy9zaHVja3lkdWNreS9GdWJhci9oZWxwL2FjaGlldmVtZW50cyIgd2lkdGg9IjQ1MCIgaGVpZ2h0PSI3MDAiIHR5cGU9InRleHQvaHRtbCI+PGVtYmVkIHNyYz0iaHR0cDovL2RvbWFuaWEudXMvc2h1Y2t5ZHVja3kvRnViYXIvaGVscC9hY2hpZXZlbWVudHMiIHdpZHRoPSI0NTAiIGhlaWdodD0iNzAwIiB0eXBlPSJ0ZXh0L2h0bWwiPjwvb2JqZWN0Pg==
</pre>
<p>Decodes as:
</p>
<pre>&lt;object data="<a href="http://domania.us/shuckyducky/Fubar/help/achievements" rel="nofollow">http://domania.us/shuckyducky/Fubar/help/achievements</a>" width="450" height="700" type="text/html"&gt;&lt;embed src="<a href="http://domania.us/shuckyducky/Fubar/help/achievements" rel="nofollow">http://domania.us/shuckyducky/Fubar/help/achievements</a>" width="450" height="700" type="text/html"&gt;&lt;/object&gt;</pre>cor-el said
Did you try without the embed and only use the object?
The data URI with only the obj2015-12-04T23:11:22-08:00JeremyChristopher74https://support.mozilla.org/en-US/questions/1096769?page=2#answer-814190<p><em>cor-el <a href="#answer-814137" rel="nofollow">said</a></em>
</p>
<blockquote>
Did you try without the embed and only use the object?
The data URI with only the object works for me in Firefox and in Google Chrome (don't know about MS browsers).
<pre>data:text/html;charset=utf-8;base64,PG9iamVjdCBkYXRhPSJodHRwOi8vZG9tYW5pYS51cy9zaHVja3lkdWNreS9GdWJhci9oZWxwL2FjaGlldmVtZW50cyIgd2lkdGg9IjUwMCIgaGVpZ2h0PSI3MDAiPjwvb2JqZWN0Pg==
</pre>
<p>The code in your last reply works for me as well in Firefox and in Google Chrome.
</p>
<pre>data:text/html;charset=utf-8;base64,PG9iamVjdCBkYXRhPSJodHRwOi8vZG9tYW5pYS51cy9zaHVja3lkdWNreS9GdWJhci9oZWxwL2FjaGlldmVtZW50cyIgd2lkdGg9IjQ1MCIgaGVpZ2h0PSI3MDAiIHR5cGU9InRleHQvaHRtbCI+PGVtYmVkIHNyYz0iaHR0cDovL2RvbWFuaWEudXMvc2h1Y2t5ZHVja3kvRnViYXIvaGVscC9hY2hpZXZlbWVudHMiIHdpZHRoPSI0NTAiIGhlaWdodD0iNzAwIiB0eXBlPSJ0ZXh0L2h0bWwiPjwvb2JqZWN0Pg==
</pre>
<hr>
<p>You may have to reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files stored in the cache.
</p>
<ul><li>Hold down the Shift key and left-click the Reload button
</li><li>Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
</li><li>Press "Command + Shift + R" (Mac)
</li></ul>
</blockquote>
<p>Sorry, not sure I understand what you mean? How would I code that?
</p><p>&lt;object data:text="" html;charset="utf-8;base64,PG9iamVjdCBkYXRhPSJodHRwOi8vZG9tYW5pYS51cy9zaHVja3lkdWNreS9GdWJhci9oZWxwL2FjaGlldmVtZW50cyIgd2lkdGg9IjQ1MCIgaGVpZ2h0PSI3MDAiIHR5cGU9InRleHQvaHRtbCI+PGVtYmVkIHNyYz0iaHR0cDovL2RvbWFuaWEudXMvc2h1Y2t5ZHVja3kvRnViYXIvaGVscC9hY2hpZXZlbWVudHMiIHdpZHRoPSI0NTAiIGhlaWdodD0iNzAwIiB0eXBlPSJ0ZXh0L2h0bWwiPjwvb2JqZWN0Pg==&lt;/object&gt;" &lt;="" p=""&gt;</p><p>Like that? Or please show me what you mean.
</p>&lt;/object&gt;<p></p>Did you try without the embed and only use the object?
The data URI with only the object works for m2015-12-04T15:36:45-08:00cor-elhttps://support.mozilla.org/en-US/questions/1096769?page=2#answer-814137<p>Did you try without the embed and only use the object?
</p><p>The data URI with only the object works for me in Firefox and in Google Chrome (don't know about MS browsers).
</p>
<pre>data:text/html;charset=utf-8;base64,PG9iamVjdCBkYXRhPSJodHRwOi8vZG9tYW5pYS51cy9zaHVja3lkdWNreS9GdWJhci9oZWxwL2FjaGlldmVtZW50cyIgd2lkdGg9IjUwMCIgaGVpZ2h0PSI3MDAiPjwvb2JqZWN0Pg==
</pre>
<p>The code in your last reply works for me as well in Firefox and in Google Chrome.
</p>
<pre>data:text/html;charset=utf-8;base64,PG9iamVjdCBkYXRhPSJodHRwOi8vZG9tYW5pYS51cy9zaHVja3lkdWNreS9GdWJhci9oZWxwL2FjaGlldmVtZW50cyIgd2lkdGg9IjQ1MCIgaGVpZ2h0PSI3MDAiIHR5cGU9InRleHQvaHRtbCI+PGVtYmVkIHNyYz0iaHR0cDovL2RvbWFuaWEudXMvc2h1Y2t5ZHVja3kvRnViYXIvaGVscC9hY2hpZXZlbWVudHMiIHdpZHRoPSI0NTAiIGhlaWdodD0iNzAwIiB0eXBlPSJ0ZXh0L2h0bWwiPjwvb2JqZWN0Pg==
</pre>
<hr>
<p>You may have to reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files stored in the cache.
</p>
<ul><li>Hold down the Shift key and left-click the Reload button
</li><li>Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
</li><li>Press "Command + Shift + R" (Mac)
</li></ul>jscher2000 said
I don't have any workarounds you haven't already tried. Does it make any differenc2015-12-04T12:05:41-08:00JeremyChristopher74https://support.mozilla.org/en-US/questions/1096769#answer-814098<p><em>jscher2000 <a href="#answer-814061" rel="nofollow">said</a></em>
</p>
<blockquote>
I don't have any workarounds you haven't already tried. Does it make any difference if you add <strong>type="text/html"</strong> into your object tag or does the site strip that, too?
&lt;object data="<a href="http://domania.us/shuckyducky/Fubar/help/achievements" rel="nofollow">http://domania.us/shuckyducky/Fubar/help/achievements</a>" width="450" height="700" <strong>type="text/html"</strong>&gt;&lt;embed src="<a href="http://domania.us/shuckyducky/Fubar/help/achievements" rel="nofollow">http://domania.us/shuckyducky/Fubar/help/achievements</a>" width="450" height="700" <strong>type="text/html"</strong>&gt;&lt;/object&gt;
</blockquote>
<p>That just created a blank space in Chrome.
And in FF it created another plugin error.
So at this point it looks like i need to label it as viewable in Chrome only and just give up on FireFox. Personally, I rarely use FF anymore unless I am playing a game. Appreciate your help though guys...
</p>I don't have any workarounds you haven't already tried. Does it make any difference if you add type=2015-12-04T10:00:00-08:00jscher2000https://support.mozilla.org/en-US/questions/1096769#answer-814061<p>I don't have any workarounds you haven't already tried. Does it make any difference if you add <strong>type="text/html"</strong> into your object tag or does the site strip that, too?
</p><p>&lt;object data="<a href="http://domania.us/shuckyducky/Fubar/help/achievements" rel="nofollow">http://domania.us/shuckyducky/Fubar/help/achievements</a>" width="450" height="700" <strong>type="text/html"</strong>&gt;&lt;embed src="<a href="http://domania.us/shuckyducky/Fubar/help/achievements" rel="nofollow">http://domania.us/shuckyducky/Fubar/help/achievements</a>" width="450" height="700" <strong>type="text/html"</strong>&gt;&lt;/object&gt;
</p>Ok, let me remind you I am not a tech person and I am still learning and obviously have LOTS to lear2015-12-04T09:34:50-08:00JeremyChristopher74https://support.mozilla.org/en-US/questions/1096769#answer-814050<p>Ok, let me remind you I am not a tech person and I am still learning and obviously have LOTS to learn yet. So him saying that didn't make much sense to me. Now that you have explained better or maybe I just didn't read it right when he said it before, but I understand now the difference there.. and yes, the site clearly is screwing the code up. And being that they don't allow java they probably would not be willing to fix it so I can embed another page that contains java into their site.
</p><p>So with that said.. anything else you can recommend that I can try?
</p>I'm seeing an empty object tag in Firefox instead of achievements. Your code is getting mangled by t2015-12-04T09:16:50-08:00jscher2000https://support.mozilla.org/en-US/questions/1096769#answer-814044<p>I'm seeing an empty object tag in Firefox instead of achievements. Your code is getting mangled by the site.
</p><p>The reason the Flash player embed works is that it is a content type Firefox allows in an embed. cor-el mentioned earlier (<a href="https://support.mozilla.org/questions/1096769#answer-813199" rel="nofollow">https://support.mozilla.org/questions/1096769#answer-813199</a>) that text/html, the type associated with web pages, is not allowed in an embed in Firefox.
</p>Ok.. so here's what we have now..
In Chrome using the code you gave me above I see nothing at all. I2015-12-04T09:08:54-08:00JeremyChristopher74https://support.mozilla.org/en-US/questions/1096769#answer-814042<p>Ok.. so here's what we have now..
In Chrome using the code you gave me above I see nothing at all. In FireFox I see the error message. A plugin is needed to view this content.
</p><p>&lt;object data="<a href="http://domania.us/shuckyducky/Fubar/help/achievements" rel="nofollow">http://domania.us/shuckyducky/Fubar/help/achievements</a>" height="700" width="450"&gt;
&lt;param name="wmode" value="opaque"&gt;
&lt;param name="allownetworking" value="internal"&gt;
&lt;param name="allowscriptaccess" value="Never"&gt;
&lt;/object&gt;
</p><p>I didn't know what that long URL you gave me was and actually meant to ask you about it. I apparently forgot to ask. I DO see what I am suppose to see in Chrome and FireFox when I paste the long link into the address bar. How can I use that to make it work in both Chrome and FireFox on Fubar?
</p><p>Now, I'm confused on something else.
If using the embed tag doesn't work in FireFox, what makes my music player from Hypster work in both Chrome and FireFox??
</p><p>As you can see it also uses the embed tag and works just fine in both browsers..
</p><p>&lt;embed quality="high" style="width:400px; height:450px; visibility:visible; " type="application/x-shockwave-flash" height="400" width="380" pluginspage="<a href="http://www.macromedia.com/go/getflashplayer" rel="nofollow">http://www.macromedia.com/go/getflashplayer</a>" border="0" src="<a href="http://hypster.com/flash_n/player.swf?id=5330855:7099614:1&amp;autoplay=true" rel="nofollow">http://hypster.com/flash_n/player.swf?id=5330855:7099614:1&amp;autoplay=true</a>" FlashVars="color_bg=0x000000&amp;color_songbg=0x000000&amp;color_song_clicked=0x383532&amp;color_btns=0x3DAB1B&amp;color_text=0xCC0000" /&gt;
</p>Did you try to paste the data URI I posted above in the location/address bar?
If I inspect the curre2015-12-04T08:01:14-08:00cor-elhttps://support.mozilla.org/en-US/questions/1096769#answer-813997<p>Did you try to paste the data URI I posted above in the location/address bar?
</p><p>If I inspect the current code in the Inspector via Inspect Element then I still see an object without a data attribute that won't work with any browser.
</p>
<pre>&lt;object height="700" width="450"&gt;
&lt;param name="wmode" value="opaque"&gt;
&lt;param name="allownetworking" value="internal"&gt;
&lt;param name="allowscriptaccess" value="Never"&gt;
&lt;embed src="<a href="http://domania.us/shuckyducky/Fubar/help/achievements" rel="nofollow">http://domania.us/shuckyducky/Fubar/help/achievements</a>" allowscriptaccess="Never" allownetworking="internal" wmode="opaque" height="700" width="450"&gt;
&lt;/object&gt;
</pre>
<p>You need to include the URL via a data attribute in the object tag and possibly omit the embed if this works in all the browsers.
</p>
<pre>&lt;object data="<a href="http://domania.us/shuckyducky/Fubar/help/achievements" rel="nofollow">http://domania.us/shuckyducky/Fubar/help/achievements</a>" height="700" width="450"&gt;
&lt;param name="wmode" value="opaque"&gt;
&lt;param name="allownetworking" value="internal"&gt;
&lt;param name="allowscriptaccess" value="Never"&gt;
&lt;/object&gt;
</pre>As you can see by what I have in the screenshot I don't have that stuff in my coding, so that has to2015-12-04T05:16:44-08:00JeremyChristopher74https://support.mozilla.org/en-US/questions/1096769#answer-813941<p>As you can see by what I have in the screenshot I don't have that stuff in my coding, so that has to be stuff that Fubar has added after I add in my codes and Save it. All we have is a small box that we can add "some" code to. They do not allow java script coding hence the reason I was attempting to embed the page I made elsewhere.
</p><p>Any ideas as to how I can get this working in both Chrome and FF? Otherwise, it looks like I may be stuck with the embed only working in Chrome.
</p>JeremyChristopher74 said
I'm not sure what you mean by the data attribute is missing?
I may be lo2015-12-04T04:59:24-08:00jscher2000https://support.mozilla.org/en-US/questions/1096769#answer-813925<p><em>JeremyChristopher74 <a href="#answer-813877" rel="nofollow">said</a></em>
</p>
<blockquote>
I'm not sure what you mean by the data attribute is missing?
</blockquote>
<p>I may be looking at the wrong page. What I see when I use Ctrl+u to view source is (bolding added for posting):
</p><p><code>&lt;center&gt;<strong>&lt;object width="450" height="700"&gt;</strong>&lt;param name="wmode" value="opaque"&gt;&lt;param name="allownetworking" value="internal"&gt;&lt;param name="allowscriptaccess" value="Never"&gt;&lt;embed src="http://domania<em>.</em>us/shuckyducky/Fubar/help/achievements" width="450" height="700" allowscriptaccess="Never" allownetworking="internal" wmode="opaque"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;/center&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;center&gt;<strong>&lt;object height="400" width="400"&gt;</strong>&lt;param name="wmode" value="opaque"&gt;&lt;param name="allownetworking" value="internal"&gt;&lt;param name="allowscriptaccess" value="Never"&gt;&lt;embed src="http://domania<em>.</em>us/shuckyducky/Fubar/RC" width="400" height="400" allowscriptaccess="Never" allownetworking="internal" wmode="opaque"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;/center&gt;</code>
</p><p>Some of those parameters look like Flash parameters.&nbsp;??
</p>