I use this javascript function to work on a XML Document :
$.get('./cliLog.xml', function(xml) {
//some code
});
The problem is that actually the “cliLog.xml” is inside a directory which has a name like :
“cliLogging-_value_generate_”.
I would like to be able to get the cliLog.xml by only using the part name “cliLogging-” of the directory name.
Something like :
$.get('../cliLogging-*/cliLog.xml', function(xml) {
//some code
});
But the “cliLogging-*” doesn’t work 🙁 …
Can anyone help me ?
how is the value generated? if it’s generated on the server side you could just print it at desired position, otherwise if it’s generated through javascript even though it’s possible it’s not optimal to just print it, since it leaves room for alot of securit issues.
Javascript Version:
PHP Version
Alt.