Hi all
I wrote this script to display CSV from URL : [UrlContentScriptCsv]
<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);
var out = p.responseText.split("\n");
out = out.join("|\n|");
out = out.split(";");
wikify(out.join("|"),place);
</script>
I use it for example in attachments : [FCBnc26_Outputs.csv]
!type
application
!file
..\look_FCBnc26_dev\office\FCBnc26_Outputs.csv
!Link
<<tiddler templateNewFileLink with: {{tiddler.title}}>>
!Content
<<tiddler UrlContentScriptCsv with:../look_FCBnc26_dev/office/
FCBnc26_Outputs.csv>>
But
- first line misses a "|" at the begening
- last lines is a lonely "|"
I am not enought skilled to do that.
Can you please help me ?
Regards
Julien
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/50bb6886-d25e-483e-aa56-4b96877984fa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.