Firefox Addon SDK - doesn't play SWF file loaded from data resources - firefox

I have a little bit problem with a Firefox extension. So, the extension has a content script and this script inserts HTML code (image and SWF) into loaded pages. It works in google chrome and with the code below it shows image and also plays SWF:
// OK
<img src="chrome-extension://{extension_id}/data/images/loader.gif">
// OK
<embed type="application/x-shockwave-flash" src="chrome-extension://{extension_id}/data/images/anim.swf" width="100%" height="100%" menu="false" quality="autohigh" wmode="transparent" loop="false" play="true">
But Firefox has a problem with the SWF file:
// OK
<img src="resource://{extension_id}/{extension_name}/data/images/loader.gif">
// SWF is not loaded
<embed type="application/x-shockwave-flash" src="resource://{extension_id}/{extension_name}/data/images/anim.swf" menu="false" quality="autohigh" wmode="transparent" loop="false" play="true" height="100%" width="100%">
It shows an error:
Security Error: Content at http://localhost/ may not load or link to resource://{extension_id}/{extension_name}/data/images/anim.swf.
Also another thing, when I enter the URL
"resource://{extension_id}/{extension_name}/data/images/anim.swf"
directly to the address bar then it doesn't play the file but on the left from the address bar is a small icon with a popup where is text "Adobe Flash is enabled on .....".
Is there any way how to bypass this security issue?

Related

ASPX image not showing on Firefox

First of I'm not sure how to formulate this specific question since it's more an browser issue than a coding issue.
I'm trying to get an ASPX image to show inside my img tag.
Which seems to work an all other browsers (IE,Chrome, Safari), except Firefox.
Anyone know how?
Example
<img src="https://example/Download.aspx?Hash=1234" />

Web page cannot display some images

My host uses Apache with .htaccess.
The web page is PHP-based.
The PHP files load just fine. The images are an issue.
A few are OK but most are not. They are all in a folder /jpg off the root.
Some are png others jpg.
All the images are like this:
<p class="Regular" align="center"><img class="img-responsive" max-width="90%" height="auto" src="/jpg/topimage.jpg" ><br/><br/>
If I replace topimage.jpg with say image20.jpg, even though image20.jpg is in the jpg folder, it does not display.
I thought, maybe this is due somehow to caching? (not sure why). I try with Chrome, Firefox and Opera.
My computer runs Windows 10.
On Android it is even worse. Only one image appears.
An almost identical web page is available from another URL and the images there (the same ones) display just fine.
The properties of the folders in .htaccess seem OK.
Where would I look next?
I replaced a one of the png image files with a similarly named jpg. So \jpg\image2.png is now \jpg\image2.jpg. Here's the img html:
<img class="img-responsive" max-width="40%" height="auto" src="/jpg/image2.jpg">
And image2.jpg is in the /jpg folder off the root.
If I edit (on Apache) the php file and change image2 to image1, image1 appears. Back to image2.jpg and again the placeholder.
I'm not sure what to do next.

Opening other reports from a report (Working in webplayer)

Is there a way to open other dashboards/Reports ( saved in same server) from a report in web player.
I tried some python scripts which is used to access webpages but none of them is working in webplayer. My client want this to happen using buttons. So i prefer python scripts than HTML.
Much appreciated
Download an image of the button you want to use, like this one.
Add this image to a text area. Edit Text Area > Insert Image > (Select the downloaded image). Now you will see your "Button" image.
Edit the HTML and use href to the web page you care about. Notice the src= will already have your image name.
<a href="http://finance.yahoo.com/quotes/TIBX,Spotfire,S,Products?ltr=1&bypass=true">
<img src="ff08c65b55ab4b36acd5dacc78f03eea.png" border="0">
</a>

How to start with speeddial mozilla extension

I want to create extension that replaces the blank page with my content
(static links plus data via ajax/iframe requests)
How should I start, where I can found usefull documentation? How can I
separate tab state when tab is blank or when tab is showing some website.
Is such code enough for minimal example
<overlay xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" id="speeddialOverlay">
<window id="main-window">
<vbox id="speeddial-multikey-wrapper">
<iframe src="http://www.somesite.com"></iframe>
</vbox>
</window>
</overlay>

Ck Editor not showing the youtube

I have build website and added the Ckeditor,
in HTml mode i added the follwoing code:
<iframe width="560" height="315" src="http://www.youtube.com/embed/pe3DH-_uapU" frameborder="0" allowfullscreen></iframe>
but its shwoing empty box in all browser
In the New Version Of the CKEditor You Could ply The YouTube Video in the editor
i tried your code and its working
Down load it from here
http://ckeditor.com/download

Resources