firefox-os

button event is not working in fire fox os

假如想象 提交于 2019-12-20 04:09:12
问题 function listContents(storagename) { alert("inside function"); //Clear up the list first $('#results').html(""); var files = navigator.getDeviceStorage(storagename); var cursor = files.enumerate(); cursor.onsuccess = function () { //alert("Got something"); var file = this.result; if (file != null) { var tagvalue = $("<p>" + file.name + "," + file.lastModifiedDate + "," + file.type + "," + file.size + "</p>").appendTo('#results'); console.log('tagvalue is ' + tagvalue); tagvalue.appendTo("

How to play audio in background with firefox os?

*爱你&永不变心* 提交于 2019-12-19 17:38:23
问题 In my manifest file I've add the audio-channel-content in permissions: "permissions": { "audio-channel-content":{"description":"Use the audio channel for the music player"} } In my index.html I've got an audio tag like: <audio mozaudiochannel="content" preload="none" src="http://my-stream-url"></audio> I can play my audio stream during 2mn: The first one when the phone is unlock. After 1mn my phone auto-lock the screen and it continue playing for another minute. Does it possible to play this

How can I share image in facebook in firefox of using javascript?

[亡魂溺海] 提交于 2019-12-13 18:57:27
问题 I have an image generated from canvas. var image = canvas.toDataURL("image/png"); Now I want to share it in facebook. How can I do it for firefox os using javascript. I am very new. I search a lot but unfortunately I did not get any results. 回答1: To share your image is recommended to use the WebActivities allowing you to interact with other applications, for example, share a picture or text ... Below I leave a simple code to implement it and share your image, you must specify that it is an

IndexedDB UnknownError “A request was aborted, for example through a call to IDBTransaction.abort.” occurs in Firefox OS app

房东的猫 提交于 2019-12-13 16:40:52
问题 When trying to insert more than 10000 records to IndexedDB in a Firefox OS app, I get an UnknownError "A request was aborted, for example through a call to IDBTransaction.abort." I am trying to insert records to 3 different tables. Anybody can help me? 回答1: Maybe you are hitting the storage limit of indexed db? https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API#Storage_limits 来源: https://stackoverflow.com/questions/26483455/indexeddb-unknownerror-a-request-was-aborted-for-example

How to add a packaged app to Firefox OS destop (desktop B2G)

删除回忆录丶 提交于 2019-12-13 06:58:57
问题 I'm developing an application for Firefox OS, and need to run Marionette tests (it is needed for my university thesis). As I know there are two ways of doing this: you have a Marionette enabled device with B2G desktop I don't have such a device so I tried the B2G desktop. Marionette is working fine, but I couldn’t find any resources that would explain me, how to add my own application to B2G desktop (it would be a packaged app). Does anyone know how to do this? 回答1: There's not an official

Can't load script as plain text with AJAX

杀马特。学长 韩版系。学妹 提交于 2019-12-13 05:32:35
问题 I have a javascript file in a server I can't modify. Here is a sample of the script I have to download: var tags = ''; tags += '<a href="#somelink"><img src="someimage.gif"/></a>; document.write(tags); I started downloading the script via AJAX and executing it, but I bumped into the "document.write cannot be executed in asynchronous call" problem. So I wanted to download the script as a plain text and take what I need from the response and put it where it should go in my html page without

HTTP request modification in Firefox OS [closed]

浪尽此生 提交于 2019-12-13 05:17:58
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 5 years ago . I'm making an app, it just loads a website. I need to modify the user agent of the http reqeust. I also need to cancel requests made by the site if URI matches a pattern (i.e. "ads"). How can I listen/control all HTTP requests made in my app is there an API for this? 回答1: If it's just for you you

Check if Firefox/Firefox OS/Firefox for Android

对着背影说爱祢 提交于 2019-12-13 04:59:24
问题 I'm working on a snippet for check if the browser is Firefox/Firefox OS/Firefox for Android. The method for check is the user agent with a little feature detection. I haven't found a better way with a complete feature detection that cover all the cases. The gist it's here: https://gist.github.com/Mte90/11087393 Any solution more professional? 回答1: As far as I know, there is no other way to do this, but I would suggest you do features detection when you need to use something specific, instead

FirefoxOS update 1.1 to 1.3 in LG D300?

无人久伴 提交于 2019-12-13 04:03:28
问题 So i have my LG D300 that can be called as LG Fireweb too I see the other devices like geeksphone have 1.2 or 1.3v, have a way to update LG D300 too? I'm googling like wildfire and i found nothing, someone can help? 回答1: Wtkd, those devices have their bootloader locked by their manufacturers, which means that you have to wait until LG releases their versions of Firefox OS 1.2 or 1.3 The other possibility, is to wait until someone figures out how to unlock the bootloader and flash a custom

Unable to build gaia from git in windows. Getting “Makefile:671: recipe for target 'preferences' failed”

蓝咒 提交于 2019-12-13 02:37:32
问题 I am trying to build and deploy a gaia build from git repo in Windows. I am trying to deploy it in অ Flame. I am trying to do it in a windows 7 with cygwin installed. After installing everything this is the error I am getting This works just fine in a Linux machine, but I need to do this in Windows since right now I have access to it only. Any pointers to what I am doing wrong here? 回答1: I'm afraid it's not going to work without significant effort for several reasons. Much better to use a VM