Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5937021
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T15:28:51+00:00 2026-05-22T15:28:51+00:00

I seem to be unable to change the onmouseover attribute of a div using

  • 0

I seem to be unable to change the onmouseover attribute of a div using jquery. In the code below, lines 1 and 3 work fine but line 2 does nothing.

window.parent.$('#note' + appid + dbid).html('<img src="images/note_gray.png">');
window.parent.$('#note' + appid + dbid).attr('onmouseover','testestestsetset');
window.parent.$('#note' + appid + dbid).attr('title', 'testdata');

Using Chrome (13.0.772.0 dev-m) watching the developer tools. I see the two changes immediately as I should, the onmouseover never does anything.

The .net code uses onmouseover to do some weird javascript hover thing. I don’t want to go back and change all that functionality, so when I update a record I want it to change the hover tip to reflect the new data, without doing a page postback. This is why I am using onmouseover and trying to change it from jquery so please don’t ask “Why don’t you use x instead”. Thanks.

—EDIT—-

If it helps, this is what it looks like in HTML from the generated page that I am building edit functionality for. The original code uses a javascript function called “Tip” to generate a hovertip. This was written by someone else. I am doing edit modals for the page. When you submit a change, I want it to change the tooltip.

<div id="note1009872" class="dbnote" onmouseover="Tip('No Notes...')" onmouseout="UnTip()" title="testempty"><img src="images/note.png"></div>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T15:28:51+00:00Added an answer on May 22, 2026 at 3:28 pm

    You’re trying to bind an event property to a string. That isn’t going to get you far.

    You need to bind it to a function, whether it is one that sits in the global namespace or is a closure:

    window.parent.$('#note' + appid + dbid).mouseover(function(){testestestsetset()});
    

    Or:

    window.parent.$('#note' + appid + dbid).mouseover(testestestsetset);
    

    Ok, turns out that you can bridge across frames like this, but that your execution space must remain in the calling frame unless named:

    window.parent.$('#note' + appid + dbid).mouseover(function() {
            window.parent.Tip('Some Tip...')
    });
    

    OR:

    window.parent.$('#bar').get(0).addEventListener('mouseover',
                function(){window.parent.Tip('Some Tip...')});
    

    I’ve got sample code working from two iFrames and have tested it out.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

On Chromium 7.0.517.44 (64615) Ubuntu 10.10, I seem to be unable to change the
There seem to many ways to skin this particular cat - but which is
I used the Create Project From Existing Code Wizard for Visual Studio 2008, but
I seem to be unable to use x:out to traverse parsed XML. I'm looking
I am trying to use the jQueryUI autocomplete plugin but I am unable to
I have the following PHP code that I can't seem to get working. I
here and here they do talk about what to do, but i seem to
I have a simple requirement I seem unable to meet: I have a product
Referencing the code below, I have a list of Error objects that has been
Probably a fairly simple question but I can't seem to make sense of why

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.