displayResult() seems OK. It creates one new div, <div class="tweets"> with some content, and puts it in leftmaindiv.
If two divs are created then it seems likely that displayResult() is called twice.
In other words the problem probably lies elsewhere, ie. wherever displayResult() is called.Airshow
Airshow
WiFi Lounge Lizard
2,682 posts since Apr 2009
Reputation Points: 321
Solved Threads: 372