writing to a div using javascript doesn't always work
<p>I am using some javascript to call a servlet using JSON and then I need to present the returned value on the calling page (aspx).
I am checking how it works on all the leading (latest versions) browsers: Chrome, IE, Opera, Safari and Firefox.</p>

<p>I am getting the best results using:</p>

<pre><code>document.getElementById('output').innerHTML = "some text here";  
</code></pre>

<p>by "best results" i mean the value is presented as needed using various scenarios.</p>

<p>I found this works on all browsers except in the case of Firefox when calling a search on a page that sends a get request. 
For some reason in this case the code doesn't change the value of 'output', although the value to be used is available (returned successfuly).</p>

<p>Using the following approach doesn't work in most scenarios, meaning it will rarely work:</p>

<pre><code>var optionElement = document.createElement("option"); 
optionElement.innerHTML = "some text here";  
document.getElementById('output').appendChild(optionElement); 
</code></pre>

<p>So my question is:
How can I change the code to be able to always present the value succesfully ?</p>

<p>Thanks </p>
