internet explorer - jquery(document).ready() fails to run in IE 7+ -


This seems like a really simple problem for me, but despite all the possible search strings, I have no answer Found the mill

I am using jquery 1.5.1 and trying to use the $ (document) .ready () function to bind many click events when the page is loaded. Eventually I narrowed down the problem:

  $ (document) .ready (function () (warning ('hello world');});   

When I load the page in IE 6,7, and 8, I never see Hello World warnings. IE 9 works, also works as FF, Chrome, Safari etc.

The 500 MS JS timelines to encircle the warning only work sometimes but definitely not consistently enough.

The only possibility that I can think of is because this page is loading well inside the HTML page tag, it may be possible to get ready () function if this is the case, then I Do not know what the solution will be.

UPDATE

Okay, after testing a small page, I can get the document ready to work in IE (although no warning No, I think this is a completely different problem).

Can you load javascript files in the page, in the context of which there are questions about IE?

What do you have in the type = "" attribute? IE is very strict when it comes to that feature if you specify that attribute, then it should have "text / javascript" in it or else IE will ignore it.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -