Hi I am having problems using fbjs and creating a div dynamically and then using appendChild to append it to an existing div.
heres an example:
var count = 0;
function addDiv(){
var theDiv = document.createElement('div');
theDiv.setId(count);
theDiv.setInnerFBML('some html here');
count++;
document.getElementById('someExistingDiv').appendChild(theDiv);
}
can anyone please tell me whats wrong or if there are any issue with appendChild inSafari when using setInnerFBML. This works perfectly fine when using setTextValue.
P.S It works it Firefox but not in Safari (Safari 4.0.3 to be specific)
Thanks
UPDATE:
it worked on the first div appended and failed after