I generate full html+css+javascript page, and paste it on other host via CSSHttpRequest.
But javascript not working on pasted page(http://learnit.by/test/).
<!-- language: lang-html -->
<script type="text/javascript" src="csshttprequest.js"></script>
<script type="text/javascript">
CSSHttpRequest.get("irus.streetball.name/bsuir/encoded.css";, callback);
function callback(data) {
document.getElementById('put_here').innerHTML = data;
};
</script>
<div id="put_here"></div>
Well I can see a couple of syntax errors, whether they are whats causing your problems or not are another matter though, they may not be the only thing.
I have gotten rid of a semi colon after the url and one after the function. You probably also need to add the http:// in as I have done. The reason for this is that without it it will act as a relative url (or so I believe).
You could alternatley write the callback in anonymously, although this shouldnt make a difference as follows: