I need to retrieve the file name of an HTM file - the file needs to retrieve its own file name - to use in another Javascript function within the same file. So far I have -
var Docname = "ESSA_CL_2009_01"
var DSstem = new Spry.Data.XMLDataSet("ESSA10_DA_sourceData_19_1.xml", "ESSA_CL_2009/" + Docname + "/Item_stem");
(the Spry or AJAX stuff is already set up)
The var Docname I'd like to be generated dynamically. It doesn't have a URL yet as such - I don't have any control over its final destination.
Any help would be much appreciated. Thanks.