Cross domain request in Firefox OS

diciembre 28th, 2012 § 0 comments § permalink

Hi!

Several people have asked me the same question: Can I make cross domain request in open web apps running Firefox OS?

Short answer: YES. It has some requirements, but here I put some tips together to perform such operation:

https://gist.github.com/4401599

Happy coding!

How to compile B2G, the Firefox OS backend

julio 28th, 2012 § 0 comments § permalink

Hi all,

just posted in the hackingfirefoxos.wordpress.com blog a new post that explaining how to build boot 2 gecko, you can check it here.

Quick and dirty HTML5 offline cache generator

abril 13th, 2012 § 0 comments § permalink

#!/bin/bash

echo "CACHE MANIFEST"
echo "#Generated: $(date)"
echo "CACHE:"
echo "/"
find . -type f |
while read i; do
if [ "${i:2}" != "$(basename $0)" ]; then
if [[ $i == \./* ]]; then
echo "${i:2}"
else
echo $i
fi
fi
done
echo "NETWORK:"
echo "*"

 

Remind the following:

  • Read a trustable source of information: html5rocks
  • Follow tips from appcachefacts.info
  • When serving your cache manifest file (could be any name, but the extension .appcache is recommended) use the content type:  text/cache-manifest