X
點擊此處開啟此網站的行動版。

技術支援討論區

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?

已張貼

I have created a couple of small pages that i have embedded into another web site. The embedded pages wont display on that site in FireFox but works on Chrome with no problem. How can I fix this so others on FireFox can view these embedded pages? I didn't know it couldn't be displayed until tonight and I have been looking for a fix since I was told. Some may see a solid white box and others see a grey box with a plugin is needed to view this content. However, if I view the pages I created on the server they work fine in FireFox. Just not when embedded into another web site. I'm stumped...

I have created a couple of small pages that i have embedded into another web site. The embedded pages wont display on that site in FireFox but works on Chrome with no problem. How can I fix this so others on FireFox can view these embedded pages? I didn't know it couldn't be displayed until tonight and I have been looking for a fix since I was told. Some may see a solid white box and others see a grey box with a plugin is needed to view this content. However, if I view the pages I created on the server they work fine in FireFox. Just not when embedded into another web site. I'm stumped...

額外的系統細節

已安裝的外掛程式

  • Google Update
  • Intel web components for Intel® Identity Protection Technology
  • Intel web components updater - Installs and updates the Intel web components
  • NPRuntime Script Plug-in Library for Java(TM) Deploy
  • Next Generation Java Plug-in 11.66.2 for Mozilla browsers
  • McAfee MSC FF plugin DLL
  • NPWLPG
  • Shockwave Flash 19.0 r0
  • 5.1.40728.0
  • Unity Player 4.6.3f1
  • WildTangent Games App V2 Presence Detector

應用程式

  • Firefox 42.0
  • 使用者代理:Mozilla/5.0 (Windows NT 10.0; WOW64; rv:42.0) Gecko/20100101 Firefox/42.0
  • 技術支援網址:https://support.mozilla.org/1/firefox/42.0/WINNT/en-US/

擴充套件

JavaScript

  • incrementalGCEnabled: True

圖形

  • adapterDescription: Intel(R) HD Graphics
  • adapterDescription2:
  • adapterDeviceID: 0x0402
  • adapterDeviceID2:
  • adapterDrivers: igdumdim64 igd10iumd64 igd10iumd64 igd12umd64 igdumdim32 igd10iumd32 igd10iumd32 igd12umd32
  • adapterDrivers2:
  • adapterRAM: Unknown
  • adapterRAM2:
  • adapterSubsysID: 2b0d103c
  • adapterSubsysID2:
  • adapterVendorID: 0x8086
  • adapterVendorID2:
  • direct2DEnabled: True
  • directWriteEnabled: True
  • directWriteVersion: 10.0.10240.16430
  • driverDate: 7-17-2015
  • driverDate2:
  • driverVersion: 10.18.15.4256
  • driverVersion2:
  • info: {u'AzureCanvasBackend': u'direct2d 1.1', u'AzureFallbackCanvasBackend': u'cairo', u'AzureContentBackend': u'direct2d 1.1', u'AzureSkiaAccelerated': 0}
  • isGPU2Active: False
  • numAcceleratedWindows: 1
  • numTotalWindows: 1
  • supportsHardwareH264: True
  • webglRenderer: Google Inc. -- ANGLE (Intel(R) HD Graphics Direct3D11 vs_5_0 ps_5_0)
  • windowLayerManagerRemote: True
  • windowLayerManagerType: Direct3D 11

修改過的偏好設定

其他

  • User JS: 否
  • 輔助功能: 否
cor-el
  • Top 10 Contributor
  • Moderator
17525 個解決方法 158458 個答案

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).

data:text/html;charset=utf-8;base64,PG9iamVjdCBkYXRhPSJodHRwOi8vZG9tYW5pYS51cy9zaHVja3lkdWNreS9GdWJhci9oZWxwL2FjaGlldmVtZW50cyIgd2lkdGg9IjUwMCIgaGVpZ2h0PSI3MDAiPjwvb2JqZWN0Pg==

The code in your last reply works for me as well in Firefox and in Google Chrome.

data:text/html;charset=utf-8;base64,PG9iamVjdCBkYXRhPSJodHRwOi8vZG9tYW5pYS51cy9zaHVja3lkdWNreS9GdWJhci9oZWxwL2FjaGlldmVtZW50cyIgd2lkdGg9IjQ1MCIgaGVpZ2h0PSI3MDAiIHR5cGU9InRleHQvaHRtbCI+PGVtYmVkIHNyYz0iaHR0cDovL2RvbWFuaWEudXMvc2h1Y2t5ZHVja3kvRnViYXIvaGVscC9hY2hpZXZlbWVudHMiIHdpZHRoPSI0NTAiIGhlaWdodD0iNzAwIiB0eXBlPSJ0ZXh0L2h0bWwiPjwvb2JqZWN0Pg==

You may have to reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files stored in the cache.

  • Hold down the Shift key and left-click the Reload button
  • Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
  • Press "Command + Shift + R" (Mac)
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><nowiki> data:text/html;charset=utf-8;base64,PG9iamVjdCBkYXRhPSJodHRwOi8vZG9tYW5pYS51cy9zaHVja3lkdWNreS9GdWJhci9oZWxwL2FjaGlldmVtZW50cyIgd2lkdGg9IjUwMCIgaGVpZ2h0PSI3MDAiPjwvb2JqZWN0Pg== </nowiki></pre> The code in your last reply works for me as well in Firefox and in Google Chrome. <pre><nowiki> data:text/html;charset=utf-8;base64,PG9iamVjdCBkYXRhPSJodHRwOi8vZG9tYW5pYS51cy9zaHVja3lkdWNreS9GdWJhci9oZWxwL2FjaGlldmVtZW50cyIgd2lkdGg9IjQ1MCIgaGVpZ2h0PSI3MDAiIHR5cGU9InRleHQvaHRtbCI+PGVtYmVkIHNyYz0iaHR0cDovL2RvbWFuaWEudXMvc2h1Y2t5ZHVja3kvRnViYXIvaGVscC9hY2hpZXZlbWVudHMiIHdpZHRoPSI0NTAiIGhlaWdodD0iNzAwIiB0eXBlPSJ0ZXh0L2h0bWwiPjwvb2JqZWN0Pg== </nowiki></pre> ---- You may have to reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files stored in the cache. *Hold down the Shift key and left-click the Reload button *Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux) *Press "Command + Shift + R" (Mac)

由 cor-el 於 修改

提出問題者

cor-el said

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).
data:text/html;charset=utf-8;base64,PG9iamVjdCBkYXRhPSJodHRwOi8vZG9tYW5pYS51cy9zaHVja3lkdWNreS9GdWJhci9oZWxwL2FjaGlldmVtZW50cyIgd2lkdGg9IjUwMCIgaGVpZ2h0PSI3MDAiPjwvb2JqZWN0Pg==

The code in your last reply works for me as well in Firefox and in Google Chrome.

data:text/html;charset=utf-8;base64,PG9iamVjdCBkYXRhPSJodHRwOi8vZG9tYW5pYS51cy9zaHVja3lkdWNreS9GdWJhci9oZWxwL2FjaGlldmVtZW50cyIgd2lkdGg9IjQ1MCIgaGVpZ2h0PSI3MDAiIHR5cGU9InRleHQvaHRtbCI+PGVtYmVkIHNyYz0iaHR0cDovL2RvbWFuaWEudXMvc2h1Y2t5ZHVja3kvRnViYXIvaGVscC9hY2hpZXZlbWVudHMiIHdpZHRoPSI0NTAiIGhlaWdodD0iNzAwIiB0eXBlPSJ0ZXh0L2h0bWwiPjwvb2JqZWN0Pg==

You may have to reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files stored in the cache.

  • Hold down the Shift key and left-click the Reload button
  • Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
  • Press "Command + Shift + R" (Mac)

Sorry, not sure I understand what you mean? How would I code that?

<object <="" data:text="" html;charset="utf-8;base64,PG9iamVjdCBkYXRhPSJodHRwOi8vZG9tYW5pYS51cy9zaHVja3lkdWNreS9GdWJhci9oZWxwL2FjaGlldmVtZW50cyIgd2lkdGg9IjQ1MCIgaGVpZ2h0PSI3MDAiIHR5cGU9InRleHQvaHRtbCI+PGVtYmVkIHNyYz0iaHR0cDovL2RvbWFuaWEudXMvc2h1Y2t5ZHVja3kvRnViYXIvaGVscC9hY2hpZXZlbWVudHMiIHdpZHRoPSI0NTAiIGhlaWdodD0iNzAwIiB0eXBlPSJ0ZXh0L2h0bWwiPjwvb2JqZWN0Pg==&lt;/object&gt;" p="">

Like that? Or please show me what you mean.

</object>

''cor-el [[#answer-814137|said]]'' <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><nowiki> data:text/html;charset=utf-8;base64,PG9iamVjdCBkYXRhPSJodHRwOi8vZG9tYW5pYS51cy9zaHVja3lkdWNreS9GdWJhci9oZWxwL2FjaGlldmVtZW50cyIgd2lkdGg9IjUwMCIgaGVpZ2h0PSI3MDAiPjwvb2JqZWN0Pg== </nowiki></pre> The code in your last reply works for me as well in Firefox and in Google Chrome. <pre><nowiki> data:text/html;charset=utf-8;base64,PG9iamVjdCBkYXRhPSJodHRwOi8vZG9tYW5pYS51cy9zaHVja3lkdWNreS9GdWJhci9oZWxwL2FjaGlldmVtZW50cyIgd2lkdGg9IjQ1MCIgaGVpZ2h0PSI3MDAiIHR5cGU9InRleHQvaHRtbCI+PGVtYmVkIHNyYz0iaHR0cDovL2RvbWFuaWEudXMvc2h1Y2t5ZHVja3kvRnViYXIvaGVscC9hY2hpZXZlbWVudHMiIHdpZHRoPSI0NTAiIGhlaWdodD0iNzAwIiB0eXBlPSJ0ZXh0L2h0bWwiPjwvb2JqZWN0Pg== </nowiki></pre> ---- You may have to reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files stored in the cache. *Hold down the Shift key and left-click the Reload button *Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux) *Press "Command + Shift + R" (Mac) </blockquote> Sorry, not sure I understand what you mean? How would I code that? <object data:text/html;charset=utf-8;base64,PG9iamVjdCBkYXRhPSJodHRwOi8vZG9tYW5pYS51cy9zaHVja3lkdWNreS9GdWJhci9oZWxwL2FjaGlldmVtZW50cyIgd2lkdGg9IjQ1MCIgaGVpZ2h0PSI3MDAiIHR5cGU9InRleHQvaHRtbCI+PGVtYmVkIHNyYz0iaHR0cDovL2RvbWFuaWEudXMvc2h1Y2t5ZHVja3kvRnViYXIvaGVscC9hY2hpZXZlbWVudHMiIHdpZHRoPSI0NTAiIGhlaWdodD0iNzAwIiB0eXBlPSJ0ZXh0L2h0bWwiPjwvb2JqZWN0Pg==</object> Like that? Or please show me what you mean.
cor-el
  • Top 10 Contributor
  • Moderator
17525 個解決方法 158458 個答案

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.

In your HTML file you use the not encoded object version.

Base64 encoded:

PG9iamVjdCBkYXRhPSJodHRwOi8vZG9tYW5pYS51cy9zaHVja3lkdWNreS9GdWJhci9oZWxwL2FjaGlldmVtZW50cyIgd2lkdGg9IjUwMCIgaGVpZ2h0PSI3MDAiPjwvb2JqZWN0Pg==

Decodes as:

<object data="http://domania.us/shuckyducky/Fubar/help/achievements" width="500" height="700"></object>

Base64 encoded:

PG9iamVjdCBkYXRhPSJodHRwOi8vZG9tYW5pYS51cy9zaHVja3lkdWNreS9GdWJhci9oZWxwL2FjaGlldmVtZW50cyIgd2lkdGg9IjQ1MCIgaGVpZ2h0PSI3MDAiIHR5cGU9InRleHQvaHRtbCI+PGVtYmVkIHNyYz0iaHR0cDovL2RvbWFuaWEudXMvc2h1Y2t5ZHVja3kvRnViYXIvaGVscC9hY2hpZXZlbWVudHMiIHdpZHRoPSI0NTAiIGhlaWdodD0iNzAwIiB0eXBlPSJ0ZXh0L2h0bWwiPjwvb2JqZWN0Pg==

Decodes as:

<object data="http://domania.us/shuckyducky/Fubar/help/achievements" width="450" height="700" type="text/html"><embed src="http://domania.us/shuckyducky/Fubar/help/achievements" width="450" height="700" type="text/html"></object>
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. In your HTML file you use the not encoded object version. Base64 encoded: <pre><nowiki>PG9iamVjdCBkYXRhPSJodHRwOi8vZG9tYW5pYS51cy9zaHVja3lkdWNreS9GdWJhci9oZWxwL2FjaGlldmVtZW50cyIgd2lkdGg9IjUwMCIgaGVpZ2h0PSI3MDAiPjwvb2JqZWN0Pg== </nowiki></pre> Decodes as: <pre><nowiki><object data="http://domania.us/shuckyducky/Fubar/help/achievements" width="500" height="700"></object> </nowiki></pre> ---- Base64 encoded: <pre><nowiki>PG9iamVjdCBkYXRhPSJodHRwOi8vZG9tYW5pYS51cy9zaHVja3lkdWNreS9GdWJhci9oZWxwL2FjaGlldmVtZW50cyIgd2lkdGg9IjQ1MCIgaGVpZ2h0PSI3MDAiIHR5cGU9InRleHQvaHRtbCI+PGVtYmVkIHNyYz0iaHR0cDovL2RvbWFuaWEudXMvc2h1Y2t5ZHVja3kvRnViYXIvaGVscC9hY2hpZXZlbWVudHMiIHdpZHRoPSI0NTAiIGhlaWdodD0iNzAwIiB0eXBlPSJ0ZXh0L2h0bWwiPjwvb2JqZWN0Pg== </nowiki></pre> Decodes as: <pre><nowiki><object data="http://domania.us/shuckyducky/Fubar/help/achievements" width="450" height="700" type="text/html"><embed src="http://domania.us/shuckyducky/Fubar/help/achievements" width="450" height="700" type="text/html"></object></nowiki></pre>

提出問題者

Not sure I fully understand but I think I might.

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.

Is there more to it than just adding the long line?

Not sure I fully understand but I think I might. 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. Is there more to it than just adding the long line?
cor-el
  • Top 10 Contributor
  • Moderator
17525 個解決方法 158458 個答案

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?

<object data="http://domania.us/shuckyducky/Fubar/help/achievements" height="700" width="450">
 <param name="wmode" value="opaque">
 <param name="allownetworking" value="internal">
 <param name="allowscriptaccess" value="Never">
</object> 

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.

Can you create a test page with this modification if you do not want to do this on the current page?

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><nowiki><object data="http://domania.us/shuckyducky/Fubar/help/achievements" height="700" width="450"> <param name="wmode" value="opaque"> <param name="allownetworking" value="internal"> <param name="allowscriptaccess" value="Never"> </object> </nowiki></pre> 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. Can you create a test page with this modification if you do not want to do this on the current page?

由 cor-el 於 修改

cor-el
  • Top 10 Contributor
  • Moderator
17525 個解決方法 158458 個答案

Did you paste the Data URI with the bas64 encode including data:text/html;charset=utf-8;base64, in the location bar in Firefox and in Google Chrome to see how this works?

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?

提出問題者

cor-el said

Did you paste the Data URI with the bas64 encode including data:text/html;charset=utf-8;base64, in the location bar in Firefox and in Google Chrome to see how this works?

Yes, I believe I did that yesterday in the address bar and it worked in both browsers.

''cor-el [[#answer-814425|said]]'' <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> Yes, I believe I did that yesterday in the address bar and it worked in both browsers.

提出問題者

We had discovered yesterday that the site is somehow stripping the word "data" after the <object. <="" p=""></object.>

We had discovered yesterday that the site is somehow stripping the word "data" after the <object.

提出問題者

cor-el said

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?
<object data="http://domania.us/shuckyducky/Fubar/help/achievements" height="700" width="450">
 <param name="wmode" value="opaque">
 <param name="allownetworking" value="internal">
 <param name="allowscriptaccess" value="Never">
</object> 

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.

Can you create a test page with this modification if you do not want to do this on the current page?

When I add this code above it comes out like this in the source viewer..

<object height="700" width="450">
<param name="wmode" value="opaque">
<param name="allownetworking" value="internal">
<param name="allowscriptaccess" value="Never">
</object>

''cor-el [[#answer-814424|said]]'' <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><nowiki><object data="http://domania.us/shuckyducky/Fubar/help/achievements" height="700" width="450"> <param name="wmode" value="opaque"> <param name="allownetworking" value="internal"> <param name="allowscriptaccess" value="Never"> </object> </nowiki></pre> 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. Can you create a test page with this modification if you do not want to do this on the current page? </blockquote> When I add this code above it comes out like this in the source viewer.. <object height="700" width="450"><br><param name="wmode" value="opaque"><br><param name="allownetworking" value="internal"><br><param name="allowscriptaccess" value="Never"><br></object>
cor-el
  • Top 10 Contributor
  • Moderator
17525 個解決方法 158458 個答案

Doesn't the website allow to add a data attribute to an object tag?

That would explain why you would see an empty block instead of of the embedded content.

If that isn't allowed then you need to use an iframe like I initially suggested in my first reply.

<iframe src="http://domania.us/shuckyducky/Fubar/help/achievements" height="700" width="450">
Doesn't the website allow to add a data attribute to an object tag? That would explain why you would see an empty block instead of of the embedded content. If that isn't allowed then you need to use an iframe like I initially suggested in my first reply. <pre><nowiki><iframe src="http://domania.us/shuckyducky/Fubar/help/achievements" height="700" width="450"> </nowiki></pre>

提出問題者

As I stated before they do not allow javascript. See screenshot. http://screencast.com/t/ioVQFCeiM0Un

As I stated before they do not allow javascript. See screenshot. http://screencast.com/t/ioVQFCeiM0Un
cor-el
  • Top 10 Contributor
  • Moderator
17525 個解決方法 158458 個答案

Did you try to contact them for support about this issue?

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.

Did you try to contact them for support about this issue? 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.