Override the Standard Status Bar Message of the DataGrid
page 5 of 5
by Steven Archibald
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 23406/ 88


Obviously, something is going on with some default initialization of the objects in the DOM when the page loads. I've tried to capture this and override it in several different ways, but have been remarkably unsuccessful. So either my logic is poor, my documentation is lacking, it's not allowed (hard to fathom), or all three. I'd love to hear from someone about how to get at the onmousedown override when the page loads and before the first mousedown event is processed.

Now the initial impetus for all of this was a security issue. The solution thus far seems somewhat lacking, probably due to a "feature" (or lack thereof) in the browser itself. So, we're back to the old engineering trade-off paradigm. I imagine most people don't hold down the mouse button on a link to see if some secure information shows up. They simply hover over it. We can cover the latter case, but not the former. Yet the status bar often shows useful information, such as progress information. It seems to me the risk is small; I'd go with keeping the status bar and hiding the secure link information under normal circumstances. If someone is sophisticated enough to know to hold the mouse button down, they likely have other means to attack your system. In the web application on which I am currently working, the client has finally decided that the page will not hide the status information; QA would just stop reporting it as a problem…

View Entire Article

User Comments

Title: Solution to 'Unpreventable' standard behavior   
Name: Your Daddy
Date: 2007-01-04 12:30:26 PM
The javascript "onfocus" event for the anchor element can be used to get rid of that pesky status bar message that displays when you hold the left mouse button down. In addition to using onmouseover, onmousedown, onmouseup, onmouseout, etc, add an onfocus attribute to the anchor element.


Your Daddy
Title: self.status doesn't work in Firefox   
Name: slolife
Date: 2005-10-17 7:53:59 PM
self.status='Hello' doesn't work in Firefox. Is this a security/anti phishing thing?
Title: Mr   
Name: Abdul Salam
Date: 2005-10-12 12:23:38 AM
very good Thanks
Title: Link is always visible   
Name: kraftspl
Date: 2005-09-23 6:45:18 PM
Nice work, but the referenced link is always visible in the status bar, when you click a link. You will furthermore see a status message.

Community Advice: ASP | SQL | XML | Regular Expressions | Windows

©Copyright 1998-2024 ASPAlliance.com  |  Page Processed at 2024-05-29 10:59:51 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search