Can I use a doSimpleXMLHttpRequest to include an html file into a span? I've been trying all day but I am not making much headway.
I have something like this at the moment:
blah.html:
<a id="one">1</a>
<script ...>
connect("one",includePage(1));
</script>
<span id="page">
bunch of html
</span>
blah.js:
function includePage(num){
file="URL";
d2=MochiKit.Async.doSimpleXMLHttpRequest(blah.inc);
d2.addCallback(displayPage);
}
function displayPage(res){
replaceChildNodes("page",res.resultText);
}
The goal here is to replace "bunch of html" with the html text in blah.inc.
Cheers,
lance
--
Lance Levsen,
Catprint Computing
Tel: (306) 493-2249
Cell: (306) 230-8783
Blog: http://www.catprint.ca/blog/
SaskBlogs: http://saskblogs.catprint.ca/
signature.asc
Description: OpenPGP digital signature
