
Originally Posted by
mwinter
If that were included in a response to an AJAX request, the responseText string would contain precisely those four characters.
That's the idea. If the response text isn't going to be parsed as HTML or XML, it may very well be parsed as javascript. If that were the case, you would want the escape sequence not the entity. If it is parsed as HTML, it should still be rendered as hoped for:
Code:
<div id="tt"></div>
<script type="text/javascript">
document.write('\xf6');
document.getElementById('tt').innerHTML='\xf6';
</script>
Both of these produce the same result on the page. The Ajax Tabs script uses the response text as the target element's innerHTML.
Bookmarks