/    Sign up×
Community /Pin to ProfileBookmark

Weird problems with onMouseOver/onMouseOut

Javascript Problem?

I have been asked by a client to determine the source of a problem in their classic ASP site which was compiled into a .dll.

When navigating the site, one can drill down until they get to a “click here to run a report” type function. Once the link is clicked on, it calls another page to display the results. Once you click on the link, it takes a while for the query to execute, and then the next page shows the results.

Here is what is really weird.

The menu where you click to run the report uses normal <A HREF style links, with associated onMouseOver and onMouseOut events. These events do an image swap.

The code looks like this:

<A HREF=’Report.asp?id=1′ onMouseOver=’imgInfo.src=”images/flashreportinfo.gif”;’ onMouseOut=’imgInfo.src=”images/ReportSelect.gif”;’>Flash Report</A>

The problem is that if put your mouse over the link, and very carefully click on it, and DONT MOVE THE MOUSE, it will take xx seconds to load, and eventually take you to the page.

If on the other hand you onMouseOver the link and click on the link, wait xx seconds, and inadvertantly move the mouse before the sql/asp return any results, the onMouseOut even fires, and although the url was clicked, and the page is waiting for a response (based on the progress bar at the bottom of the browser) as the query executes, as soon as the mouse moves, it cancels the http request and the user is left with the same page, wondering if they clicked on it.

Any ideas as to what is causing this?

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@jthgJan 26.2007 — Does this problem happen in all browsers or just a specific one?
Copy linkTweet thisAlerts:
@kapcreationsauthorJan 26.2007 — I tested it in 3 browsers:

It appears to work fine in Firefox 1.5.0.9

It does not work in IE 6.0.3790.1830

It does not work in IE 6.0.2900.2180.xpsp_gdr.050301-1519
×

Success!

Help @kapcreations spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...