!Description
<html><iframe src="..\satt_prop14_dev\matlab\ScoreCalculation14.m" frameborder="0" width="100%" height="1100"></iframe></html>
!type
application
!file
..\satt_prop14_dev\matlab\ScoreCalculation14.m
!Link
<<tiddler templateNewFileLink with: {{tiddler.title}}>>
..\satt_prop14_dev\matlab\ScoreCalculation14.m
" type="..whateveritis.."><html>
<object data="..\satt_prop14_dev\matlab\ScoreCalculation14.m" type="txt">
File not found.
</object>
</html>
<object style="width:650px; height:264em;" data="..\satt_prop14_dev\matlab\ScoreCalculation14.m" type="txt">
{{{
contents of your .m file goes here ...
}}}
<script>
out=store.getValue("$1","alias")
wikify(out.toString(),place); //Final output
</script>
<script>
document.include = function (url) {
if ('undefined' == typeof(url)) return false;
var p,rnd;
if (document.all){
// For IE, create an ActiveX Object instance
p = new ActiveXObject("Microsoft.XMLHTTP");
}
else {
// For mozilla, create an instance of XMLHttpRequest.
p = new XMLHttpRequest();
}
// Prevent browsers from caching the included page
// by appending a random number (optional)
rnd = Math.random().toString().substring(2);
url = url.indexOf('?')>-1 ? url+'&rnd='+rnd : url+'?rnd='+rnd;
// Open the url and write out the response
p.open("GET",url,false);
p.send(null);
document.write( p.responseText );
}
document.include('../satt_prop14_dev/matlab/ScoreCalculation14.m');
</script>
<<tiddler UrlContentScript with:../satt_prop14_dev/matlab/ScoreCalculation14.m>>
<script>
var p;
if (document.all){
// For IE, create an ActiveX Object instance
p = new ActiveXObject("Microsoft.XMLHTTP");
}
else {
// For mozilla, create an instance of XMLHttpRequest.
p = new XMLHttpRequest();
}
p.open("GET","$1",false);
p.send(null);
wikify(p.responseText,place);
</script>
[Exception... "Failure" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: file:///S:/satt_prop14/index.html line 17349 > eval line 76 > eval :: _out :: line 13" data: no]not perfect ...
Hi all
I finally managed something ... experts might find it dirty :-)
<script>
var url = '../satt_prop14_dev/matlab/ScoreCalculation14.m';
if ('undefined' == typeof(url)) return false;
var p,rnd;
if (document.all){
// For IE, create an ActiveX Object instance
p = new ActiveXObject("Microsoft.XMLHTTP");
}
else {
// For mozilla, create an instance of XMLHttpRequest.
p = new XMLHttpRequest();
}
p.open("GET",url,false);
p.send(null);
var urlContent = p.responseText.toString();
wikify(urlContent,place)
</script>
,
I don't manage to concatenate "{{{" + p.responseText + "}}}" to keep indentations.