My JQuery is failing in IE 9. Works in Chrome and FireFox though?

I am using some JQuery in a site I am building. It works great in Google Chrome and Firefox, however it fails in Internet Explorer 9. I tried playing with compatibilty mode for IE 9, but that does not work. If anyone has an idea what is wrong, I would appreciate your help.


 <script type="text\javascript">

var message = "Today is Monday";
   
$('#handleOnPreTag4').html(message);
$('#submitButton').bubbletip($('#popupBoxForSureLabel'), {
    deltaDirection: 'up',
    deltaPosition: 50
    offsetTop: -50,
    delayHide: 90000,
 })
{
  $('#submitButton').trigger('mouseover');

}


</script>
LVL 2
brgdotnetcontractorAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

RobOwner (Aidellio)Commented:
I can see a few issues with your code:

$('#submitButton').bubbletip($('#popupBoxForSureLabel'), {
    deltaDirection: 'up',
    deltaPosition: 50  <- MISSING COMMA
    offsetTop: -50,
    delayHide: 90000, <--- EXTRA COMMA NOT NEEDED
 })  <----- MISSING SEMICOLON
// NOT SURE WHAT'S GOING ON IN THIS NEXT SECTION?
{  <---- BRACKET SHOULDN'T BE HERE
  $('#submitButton').trigger('mouseover');

} <---- BRACKET SHOULDN'T BE HERE
Should be

$('#submitButton').bubbletip($('#popupBoxForSureLabel'), {
    deltaDirection: 'up',
    deltaPosition: 50,
    offsetTop: -50,
    delayHide: 90000
 });

$('#submitButton').trigger('mouseover');

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
RobOwner (Aidellio)Commented:
Failing that I would need a link to your site or at least the full code for the page with the issue.
0
Julian HansenCommented:
In FF the only issue is the missing comma - it is fairly tolerant of the extra comma and missing ';'
IE same as firefox but is intolerant of the extra comma

The { } block shouldn't be an issue - just doesn't do anything in this case.

Missing ';' are tardy but usually not the culprit

Otherwise what tagit said - need to see a link.
0
brgdotnetcontractorAuthor Commented:
The extra comma was the problem. Thanks so much!!
0
Julian HansenCommented:
You are welcome - thanks for the points.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
jQuery

From novice to tech pro — start learning today.