Hi Tobias

Thank you for quick and good idea.

I made it work with :
out = out.splice(5-1,9-5+1);

Final with parametrization :

<<tiddler UrlContentScriptStartEnd with:../look_app15_raw/matlab/
Emt27PowerFilter.m 5 9>>

with [[UrlContentScriptStartEnd]] :

<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.splice($2-1,$3-$2+1);
wikify(out.join("\n"),place);
</script>

Thanks a lot

JBo




On Tuesday, September 22, 2015 at 11:13:28 AM UTC+2, Tobias Beer wrote:
>
> Hi Julien,
>  
>
>> wikify(p.responseText,place);
>>
>
>> Sometime I would like to trunck the remote file to display for example 
>> only lines 5 to 9.
>
>
> =>
>
> var out = p.responseText.split("\n");
> out = out.splice(5, out.length-9);
> wikify(out.join("\n"),place);
>
> Best wishes,
>
> — tb
>

-- 
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/6bf6c227-7b54-43e7-ab88-7325ffe14fae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to