How to link xml page to my below source code?
can anybody tell me how to link xml file to this javascript
function loadForum(forumID)
{alert(forumID);
createForum(forumID);
// load XML
// load Data in the Container
}function createForum(forumID)
{var fCDIV = document.createElement('DIV');
fCDIV.setAttribute('id', forumID);
fCDIV.setAttribute('className', 'forumContainer');
var fTDIV = document.createElement('DIV');
fTDIV.setAttribute('id', forumID+'_Title');
fTDIV.setAttribute('className', 'forumTitle');
var fDDIV = document.createElement('DIV');
fDDIV.setAttribute('id', forumID+'_Display');
fDDIV.setAttribute('className', 'forumDisplay');
fDDIV.innerHTML = '<DIV class="forumTopics"></DIV><DIV class="forumThreads"></DIV>';
var fTBDIV = document.createElement('DIV');
fTBDIV.setAttribute('id', forumID+'_toolBar');
fTBDIV.setAttribute('className', 'forumToolBar');
fCDIV.appendChild(fTDIV);
fCDIV.appendChild(fDDIV);
fCDIV.appendChild(fTBDIV);
document.body.appendChild(fCDIV);}
0 коммент.:
Post a Comment