X
Tap here to go to the mobile version of the site.

منتدى الدعم

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?

Posted

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

Additional System Details

Installed Plug-ins

  • 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

Application

  • Firefox 42.0
  • User Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:42.0) Gecko/20100101 Firefox/42.0
  • Support URL: https://support.mozilla.org/1/firefox/42.0/WINNT/en-US/

Extensions

Javascript

  • incrementalGCEnabled: True

Graphics

  • 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

Modified Preferences

Misc

  • User JS: No
  • Accessibility: No
cor-el
  • Top 10 Contributor
  • Moderator
17588 solutions 159105 answers

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)

Modified by cor-el

Question owner

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
17588 solutions 159105 answers

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>

Question owner

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
17588 solutions 159105 answers

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?

Modified by cor-el

cor-el
  • Top 10 Contributor
  • Moderator
17588 solutions 159105 answers

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?

Question owner

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.

Question owner

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.

Question owner

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
17588 solutions 159105 answers

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>

Question owner

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
17588 solutions 159105 answers

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.