I have posted two issues here:
- Does div.innerText work in Firefox? It seems, not.
IE and Opera support this.
- In IE6, the HTTP_REFERER misses the GET parameter.
I expected the page being called inside an embedded flash plaer (in fact, Google mp3 reader) does not have ?code=... in the referrer.
[HTTP_REFERER] => http://localhost/media/player.swf?code=M3BtLmFsay9haWRlbS9zY29kdGgvOkY=
It is seen in Opera and Firefox. While, IE sees:
[HTTP_REFERER] => http://localhost/media/player.swf
I just found these while I was trying to safeguard the mp3 files being played inside the Google reader.
var player = document.getElementById('player');
var mp3_file = player.innerText;
# NOT WORKING IN FIREFOX, but in Opera/IE. I need a text version only
player.innerHTML = ''; # throw anything inside it
var embed = document.createElement('embed');
# in [b]IE6[/b], this code is lost in referrer
player.appendChild(embed); # install the player