The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Latest Threads on Forumhome with Ajax.
I am trying to add Ajax to Chris M's Latest Threads on Forumhome plugin because i found this is a great add on for forumhome. My problem i am not a coder at all maybe i can call myself as a beginner :smoke:
I've read a lot of tutorials about Ajax and here is the part which i am stuck at. The threadbits i am trying to get is a plugin and i need a php to recall the data. Is there a way to skip this part ? Code:
<script language="JavaScript" type="text/javascript"> var sendReq = getXmlHttpRequestObject(); var receiveReq = getXmlHttpRequestObject(); var lastMessage = 0; var mTimer; //Function for initializating the page. function startthreads() { document.getElementById('threadbits').focus(); getthreadbits(); } function getXmlHttpRequestObject() { if (window.XMLHttpRequest) { return new XMLHttpRequest(); } else if(window.ActiveXObject) { return new ActiveXObject("Microsoft.XMLHTTP"); } else { document.getElementById('p_status').innerHTML = 'Status: Cound not create XmlHttpRequest Object. Consider upgrading your browser.'; } } //Gets the current messages from the server function getthreadbits() { if (receiveReq.readyState == 4 || receiveReq.readyState == 0) { receiveReq.open("GET", 'whatinhere' + lastthread, true); receiveReq.onreadystatechange = handleReceivethreads; receiveReq.send(null); } }</script> Help will be really appriciated. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|