Vyhľadajte odpoveď

Vyhnite sa podvodom s podporou. Nikdy vás nebudeme žiadať, aby ste zavolali alebo poslali SMS na telefónne číslo alebo zdieľali osobné informácie. Nahláste prosím podozrivú aktivitu použitím voľby “Nahlásiť zneužitie”.

Learn More

My app is not fully embedding, being denied permission

  • 5 odpovedí
  • 1 má tento problém
  • 7 zobrazení
  • Posledná odpoveď od mobilemod

more options

Hi. So I am making a Firefox OS webapp. I'm using the <iframe> function to display a web page. The problem is that only about a 3rd of the screen is displaying the web space. Here is a screenshot: http://i.imgur.com/POJU3lL.png

Here are the 2 errors in my firefox os simulator:

  Denied permission 'browser' for app type 'web'.
   Denied permission 'embed-apps' for app type 'web'.

Here is my manifest.webapp:

{ "name": "Forum", 

"description": "testing, testing!",

"permissions": {
    "browser": {},
    "embed-apps": {}
  },
"launch_path": "/index.html", 
"developer": { "name": "Mobile Mod",
"url": "http://mobilemod.net" }, 
"icons": { 
"16": "/img/icon16.png",
"32": "/img/icon32.png", 
"48": "/img/icon48.png", 
"64": "/img/icon64.png", 
"128": "/img/icon128.png" }, 
"default_locale": "en" }

How do I extend the size of the <iframe>?

Hi. So I am making a Firefox OS webapp. I'm using the <iframe> function to display a web page. The problem is that only about a 3rd of the screen is displaying the web space. Here is a screenshot: http://i.imgur.com/POJU3lL.png Here are the 2 errors in my firefox os simulator: Denied permission 'browser' for app type 'web'. Denied permission 'embed-apps' for app type 'web'. Here is my manifest.webapp: <pre><nowiki>{ "name": "Forum", "description": "testing, testing!", "permissions": { "browser": {}, "embed-apps": {} }, "launch_path": "/index.html", "developer": { "name": "Mobile Mod", "url": "http://mobilemod.net" }, "icons": { "16": "/img/icon16.png", "32": "/img/icon32.png", "48": "/img/icon48.png", "64": "/img/icon64.png", "128": "/img/icon128.png" }, "default_locale": "en" }</nowiki></pre> How do I extend the size of the &lt;iframe&gt;?

Upravil(a) cor-el dňa

Vybrané riešenie

Nothing to be sorry about!

So you just want to display your page. That will make it a lot easier... All you need is a manifest in your site's root directory.

I can't help anymore tonight (very late here). Please email me (joshua-smith@verizon.net) the rest of your questions, and I will work with you to get everything working =)

- iNerd

Čítať túto odpoveď v kontexte 👍 0

Všetky odpovede (5)

more options

Hello,

The iframe issue is because iframes are sized differently than other elements like divs. Some styles like height: 100%; probably won't work. You may want to use the css calc property instead.

As for the manifest issue, you need to specify the "Description" property for each permission according to MDN. Anyway, you don't need the embed-apps permission if your app doesn't need to install other apps. Also, the Browser API is only needed if you need advanced browsing functions. The more permissions your app needs, the harder it is to get it approved on the Marketplace.

Hope this helps!
Joshua Smith (iNerd)

Upravil(a) Joshua Smith dňa

more options

Okay, so I am still a bit confused. Essentially what I wanted this app to do was display my forum. I wanted to put buttons on the bottom of the screen for back/forward, forum home, and private messages. I don't quite understand the css calc properties since I am not trying to create a webpage, only trying to display it.

more options

Also, just wanted to clarify that I am quite the noob when it comes to this stuff. Sorry about that.

more options

Vybrané riešenie

Nothing to be sorry about!

So you just want to display your page. That will make it a lot easier... All you need is a manifest in your site's root directory.

I can't help anymore tonight (very late here). Please email me (joshua-smith@verizon.net) the rest of your questions, and I will work with you to get everything working =)

- iNerd

more options

Thanks for the help. I will email you. :)