M
Mariano
I'm going to explain better.
I have a js file that will call a java servlet, this servlet will gave
me a response back. This response is in XML format between tag <msg>.
This response should be a call to JS function, this is the response
example:
<msg>functionJS("param1")</msg>
Successively in the js i will read the msg node (from the servlet)
with an XPATH query and then I would use functionJS, but all that i
can do is print litterally the <msg> content.
This is the JS thath call servlet and make XPATH:
function servlet_call() {
var doc = loadXMLDoc("servlet?id=0"); // load xml from servlet
response
var msg = myxPath(doc, "/msg"); // obtain the content
between <msg>
var target = document.getElementById("ajaxDiv"); // ajax
target.innerHTML=msg; //
ajax
}
As you can imagine, i don't want print the msg content, but, execute
it. Some suggest???
bye
I have a js file that will call a java servlet, this servlet will gave
me a response back. This response is in XML format between tag <msg>.
This response should be a call to JS function, this is the response
example:
<msg>functionJS("param1")</msg>
Successively in the js i will read the msg node (from the servlet)
with an XPATH query and then I would use functionJS, but all that i
can do is print litterally the <msg> content.
This is the JS thath call servlet and make XPATH:
function servlet_call() {
var doc = loadXMLDoc("servlet?id=0"); // load xml from servlet
response
var msg = myxPath(doc, "/msg"); // obtain the content
between <msg>
var target = document.getElementById("ajaxDiv"); // ajax
target.innerHTML=msg; //
ajax
}
As you can imagine, i don't want print the msg content, but, execute
it. Some suggest???
bye