Hi experts,
I am trying to use get jquery get method to read and analyze a number of xml files.
I am scanning a folder for xml files, storing the urls (using the file protocol notation) in an array of variable length - which means that the script cannot tell in advance how many files must be interpreted.
It looks like...
I now get the content of the first file and analyze it...
In short, the first xml file gets read and when this is done, my declared function is called which analyzes the file's content and appends certain entries to a long "table" (well, a two dimensional array). As $.get() is called as a an asynchronous function, it is not certain when the declared function is called. As it is most important for me, to read and analyze every file only when the routine is finished with the last file (to make sure that the result array entries have the correct order - some of these files are huge while other are very short), the next $.get(...) call should probably get called from within my declared function (at the end) and should start some kind of recursion (?).
a) Is that possible?
b) How is it done? I tried to read about "arguments.callee", but I am not fit enough to get it done...
BTW, if it can be done using jQuery 1.2.6, I would be happy... :-) Ah, and before somebody asks... yes, everything is run on the local harddrive, so now web server is involved... a HTA will do the magic...
Thank you in advance for helping me,
Oliver