Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: why do I get question marks instead of bullets ??? why do I get question marks instead of bullets ???To: NULL Date: 6/2/2004 3:09:00 PM <!--
Please tell me :
Why are the bullet marks shown as question marks ? How should I
fix the following code ?
To see the problem, please run this html file and click on the button.
Author: ericosman@r... 6/02/2004
-->
<html><head><title>Read Data From Web Page</title>
<script>
function doit() {
req = new ActiveXObject('Msxml2.XMLHTTP');
var url = "http://www.aaamidatlantic.com/savings/default_aloha.asp";
req.open('GET', url, false);
req.setRequestHeader("Content-Type", 'text/xml; charset="ISO-8859-1"');
req.setRequestHeader("Accept-Charset", "iso-8859-1");
req.send("");
var t = req.ResponseText;
t = t.substring(t.indexOf("Member Benefits include"), t.length);
var endStr = "discount off first";
t = t.substring(0, t.indexOf(endStr) + endStr.length);
document.getElementById("resultsDiv").innerHTML =
"Why does the following text have question marks instead of bullets ?<br>"
+ t;
}
</script>
</head><body><button onClick="doit()">Press to read the data</button><br>
<div id=resultsDiv></div></body></html>
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
