MyBB Community Forums

Full Version: Javascript code conversion from 1.6 into 1.8
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello all.
Can someone help me to change this function to work in MyBB 1.8 ?
 xml=response.responseXML;
remove=xml.getElementsByTagName('del').item(0).firstChild.data=="1";
lin=document.getElementById('a'+pid);
if (remove) {
table = document.getElementById('thx' + pid);
table.style.display = xml.getElementsByTagName('display').item(0).firstChild.data != 0 ?
'' : 'none';
list = document.getElementById('thx_list' + pid);
list.innerHTML = xml.getElementsByTagName('list').item(0).firstChild.data;

img = document.getElementById('i' + pid);
img.src = xml.getElementsByTagName('image').item(0).firstChild.data;


Edit:
I solved this problem when i read console log.
No need to use function: xml=response.responseXML; to work properly

So plugin Thanks now work on 1.8 Smile