hi eric thanks for the input. In the end i decided to just reuse some
code i already had which was to attempt to load a file and catch an
exception thrown if the file doesnt exist. Worked for my purpose :)
jon

On Jan 12, 7:58 pm, Eric Shulman <[email protected]> wrote:
> On Jan 12, 11:44 am, rakugo <[email protected]> wrote:
>
> > I want to do some file validation in my javascript code.
> > eg. given a filepath eg. x.html I want to be able to check if x.html
> > exists before I run a bit of code.
>
> > Is there any easy way of doing this?
>
> http://www.TiddlyTools.com/#ImagePathPlugin
>
> provides fallback handling for locating local image files and includes
> several functions that perform local filesystem lookups.  Although
> these functions were written specifically to support the features of
> this plugin, they are somewhat generic in their utility and, at a
> minimum, offers some example code that you can adapt to your needs.
>
> enjoy,
> -e
> Eric Shulman
> TiddlyTools / ELS Design Studios
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" 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/TiddlyWikiDev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to