Reading list of files from folder using jQuery

Reading list of files from folder using jQuery

Hi Everyone

How I can get list of all files from folder using jQuery.  Plz. help on me this.
Advance Thanking you..

I tried and no luck.. Correct me where I'm wrong.
sample code :
            var fileNames = '';
            $.ajax({
                url: xmlFileName,
                success: function(data) {
                    $(data).find("a:contains(.xml)").each(function() {
                        fileNames += $(this).attr("href");
                    });

                    return fileNames;
                }
            });

Regards,
Hari