Hi All,
maybe it will help for somebody,
I had a bit time to play with my BD D8900 EN FW 1017-2 and did a read OS file modified widget from BBC widget with a simple code :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "
http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Z_Read_OS_File</title>
<script type="text/javascript" language="javascript" src="$MANAGER_WIDGET/Common/API/Widget.js"></script>
<script type="text/javascript" language="javascript">
function init() {
var widgetAPI = new Common.API.Widget();
widgetAPI.sendReadyEvent();
}
function readfile() {
alert(document.getElementById('iframe').contentDocument.body.firstChild.innerHTML);
}
</script>
</head>
<body onload='init();' bgcolor="#FF0000">
<iframe id='iframe' src = 'file:///proc/mounts' onload='readfile()' height=1000 width=900> </iframe>
</body>
</html>
It is really very easy to access an OS file from javascript.
You do not have the required permissions to view the files attached to this post.