Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
JavaScript to Chrome Conversion
Message
From
10/01/2013 14:31:43
 
 
To
10/01/2013 11:50:38
General information
Forum:
Javascript
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01562039
Message ID:
01562053
Views:
58
Likes (1)
>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


Charles Hankey

Though a good deal is too strange to be believed, nothing is too strange to have happened.
- Thomas Hardy

Half the harm that is done in this world is due to people who want to feel important. They don't mean to do harm-- but the harm does not interest them. Or they do not see it, or they justify it because they are absorbed in the endless struggle to think well of themselves.

-- T. S. Eliot
Democracy is two wolves and a sheep voting on what to have for lunch.
Liberty is a well-armed sheep contesting the vote.
- Ben Franklin

Pardon him, Theodotus. He is a barbarian, and thinks that the customs of his tribe and island are the laws of nature.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform