I've never used JQuery but I'll give it a look see.
In the meantime, I'm using innerHTML. Seems to work but it's just more changes than I was hoping for.
function GenerateMenu()
{
var sHtml = "";
var obj = document.getElementById('menubar');
for ( DocumentWriteCounter = 0; DocumentWriteCounter < MenuSet.length; DocumentWriteCounter++ )
sHtml += MenuSet[ DocumentWriteCounter ].HTML;
if ( MenuSet.length > 0 )
obj.innerHTML = sHtml;
}
>>A relatively simple function that dynamically writes out the html for a menu.
>>Chrome does not recognize the .document properly.
>>I've researched and found a couple of posts that lead me to believe dynamically writing to the object as done below is no longer allowed.
>>
>>I hope there is a simple work around as I have spent a chunk of time converting from VbScript to JavaScript and everything is working properly in IE 8.0. :D
>>
>>
>>function GenerateMenu()
>>{
>> for ( DocumentWriteCounter = 0; DocumentWriteCounter < MenuSet.length; DocumentWriteCounter++ )
>> menubar.document.write( MenuSet[ DocumentWriteCounter ].HTML );
>>}
>>
>
>Just a WAG, but are you wrapped the call in $(document).ready() ?
>
>
http://www.learningjquery.com/2006/09/introducing-document-ready