Using jQuery.get with a file up a directory?
Posted
by gct
on Stack Overflow
See other posts from Stack Overflow
or by gct
Published on 2010-03-20T04:00:12Z
Indexed on
2010/03/20
4:01 UTC
Read the original article
Hit count: 181
JavaScript
|jQuery
I'm using jQuery to write a simple utility app that's just run locally. It'll read from a list of files using jQuery.get and then display them along with some meta-data (which resides in a separate file). The images and meta files live in ../scored_images/*.[jpg|meta]
I can load the file list with jQuery.get just fine (it's in the current directory), and I can load up the images and display them without a problem. However when I go to load the meta file for display, jQuery.get seems to silently fail. I can load them fine if the path doesn't have ../ in it. Is there a way to work around this behavior?
© Stack Overflow or respective owner