Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: JavaScript to Chrome Conversion

$
0
0
Re: JavaScript to Chrome Conversion
HTML, CSS, JavaScript, Flash
Re: JavaScript to Chrome Conversion
Jan. 10, 2013
07:59 pm
3OT16UYB8Show this entire thread in new window
Gratar Image based on email address
From:Nathan Brazil
To:Rick Strahl
Yes. It looks like I'm going to have to invest some time learning jquery. Thanks for your help.

This is the sort of thing you should use jQUery for to eliminate browser differences. This code is easy enough with raw JS, but it's still much more efficient to use jQUery if you do anything even mildly more complex.

+++ Rick ---


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 ); }




Viewing all articles
Browse latest Browse all 10393

Trending Articles