audExpert
asked on
create html from web service that returns xml
I am trying to create an html select tag based on the results I get back from a web service. The web services creates the html. I get the return string and want to place it in my web page. I am getting a string back but it is not showing up as html but just as a string. This is the results from the web service:
<?xml version="1.0" encoding="utf-8" ?>
<string xmlns="http://audintranet/SIREJVSvc"><SELECT id='OpenAcctgPeriodsSelect ' onChange='GetJVNo();'><OPT ION value='4,2009'>April 2009</OPTION></SELECT></st ring>
What shows up in the web page is the select statement as a string. The way I place it in the page is by the following:
document.getelementbyid("m yDiv").inn erHTML = httpResponse.responseText
How in the world do I get my string to show up as html?
<?xml version="1.0" encoding="utf-8" ?>
<string xmlns="http://audintranet/SIREJVSvc"><SELECT id='OpenAcctgPeriodsSelect
What shows up in the web page is the select statement as a string. The way I place it in the page is by the following:
document.getelementbyid("m
How in the world do I get my string to show up as html?
you need to set the respponse content type to text/html
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Found own solution. Please see mylast comment.