> Anyone have a good way to load a text file in the new
> version?
Figured out a solution; it seems a little crude to me, but it works.
I'll post it for the benefit of anyone else using loadFile in a macro;
maybe someone has a nicer solution, though. Seems there should at
least be a way to do it with jQuery.get...) In this snippet, fName is
a file path returned by a picker. The first line is needed because
jQuery.ajax needs a URL, not a file path.
fName = "file:\\\\\\" + fName.replace(/\s/g,"%20");
var txtFile = jQuery.ajax({ url: fName, async: false}).responseText;
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---