448191 Posted May 23, 2006 Share Posted May 23, 2006 [code]function getRequestObject(){ var http; if(window.XMLHttpRequest) { http = new XMLHttpRequest(); } else if(window.ActiveXObject) { http = new ActiveXObject("Microsoft.XMLHTTP"); } else { alert('Problem creating the XMLHttpRequest object'); } return http;}var currentNode;var currentModule;var http = getRequestObject();function loadModules(){ var moduleNodeList = document.getElementsByTagName("module"); for($i=0;$i<moduleNodeList.length; $i++) { currentNode = moduleNodeList.item($i); currentModule = currentNode.getAttribute('id'); var url = 'shout.php?module='+currentModule; http.open('get',url,false); http.onreadystatechange = processResponse; http.send(null); } }function processResponse() { if(http.readyState == 4 && http.status == 200) { var response = http.responseText; if(response) { currentNode.innerHTML = response; } }}[/code]Above causes an unknown runtime error within processRespone on "currentNode.innerHTML = response;"Anyone? Quote Link to comment https://forums.phpfreaks.com/topic/10284-unknown-runtime-error/ Share on other sites More sharing options...
448191 Posted May 25, 2006 Author Share Posted May 25, 2006 Nevermind. I can't get an xhtml document with a tag "module" to validate, even with custom namespacing. So I'm going for the cutting edge and going to learn XSLT... [img src=\"style_emoticons/[#EMO_DIR#]/smile.gif\" style=\"vertical-align:middle\" emoid=\":smile:\" border=\"0\" alt=\"smile.gif\" /] Quote Link to comment https://forums.phpfreaks.com/topic/10284-unknown-runtime-error/#findComment-38794 Share on other sites More sharing options...
448191 Posted May 25, 2006 Author Share Posted May 25, 2006 Pfffff, this XLST shit is though... [img src=\"style_emoticons/[#EMO_DIR#]/unsure.gif\" style=\"vertical-align:middle\" emoid=\":unsure:\" border=\"0\" alt=\"unsure.gif\" /] Quote Link to comment https://forums.phpfreaks.com/topic/10284-unknown-runtime-error/#findComment-38807 Share on other sites More sharing options...
GBS Posted June 2, 2006 Share Posted June 2, 2006 Hi there,,just a little idea,,In your script, the response you get,,... does it look like:[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]currentNode.innerHTML = some text;[/quote]or like:[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]currentNode.innerHTML = [b]"[/b]some text[b]"[/b];[/quote]you know,, missing comas could make an error,... Quote Link to comment https://forums.phpfreaks.com/topic/10284-unknown-runtime-error/#findComment-41211 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.