473,386 Members | 1,736 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Safari support for window.status

yb
Hi,

In Mozilla and IE, setting an event handler for "onmouseover" for a
link, (i.e. 'a' element) and return false will prevent the status
message from showing the links href value.

Safari displays the link anyway, and also trying to use DOM 2 API and
eventhandler with "preventDefault" function does not solve the problem
either.

Is there anyway with Safari to stop the status message from showing?

Thank you

Nov 8 '05 #1
9 3672
yb a écrit :
Hi,

In Mozilla and IE, setting an event handler for "onmouseover" for a
link, (i.e. 'a' element) and return false will prevent the status
message from showing the links href value.
.... if and only if the user has not check
Edit/Preferences.../Advanced/Allow scripts to:/Change status bar text
Safari displays the link anyway,
....which is a good thing IMO
and also trying to use DOM 2 API and
eventhandler with "preventDefault" function does not solve the problem
either.

Is there anyway with Safari to stop the status message from showing?

Thank you


What you are trying to do is NOT user-friendly. Only hackers and some
"original"/strange unorthodox web designers try to mask or hide the url
of their links.

Gérard
--
remove blah to email me
Nov 8 '05 #2
Gérard Talbot wrote:
[hide URIs in status bar]
What you are trying to do is NOT user-friendly. Only hackers and some
"original"/strange unorthodox web designers try to mask or hide the url
of their links.


s/hackers/crackers/

And it is still not entirely true. There are good reasons for hiding the
URI and there are good reasons for not doing so. For example, there is
not much point in letting the user agent show a "#" URI used in the `href'
attribute of script-only `a' elements; it is much more reasonable to show
a more detailed description what the element will do when it is activated.
PointedEars
Nov 8 '05 #3
Thomas 'PointedEars' Lahn said the following on 11/8/2005 3:58 PM:
Gérard Talbot wrote:

[hide URIs in status bar]
What you are trying to do is NOT user-friendly. Only hackers and some
"original"/strange unorthodox web designers try to mask or hide the url
of their links.

s/hackers/crackers/

And it is still not entirely true. There are good reasons for hiding the
URI and there are good reasons for not doing so. For example, there is
not much point in letting the user agent show a "#" URI used in the `href'
attribute of script-only `a' elements; it is much more reasonable to show
a more detailed description what the element will do when it is activated.


There is *never* a "good reason" for screwing with my browser, no matter
what your intent is. If you want to show me additional information, then
show it in the page.

Besides, a "script only 'a' element" is next to useless. If it is script
only, then have script create a button. Problem solved with regards to
the # URL

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Nov 8 '05 #4
Thomas 'PointedEars' Lahn wrote:
Gérard Talbot wrote:
[hide URIs in status bar]
What you are trying to do is NOT user-friendly. Only hackers and some
"original"/strange unorthodox web designers try to mask or hide the url
of their links.


s/hackers/crackers/

And it is still not entirely true. There are good reasons for hiding the
URI and there are good reasons for not doing so. For example, there is
not much point in letting the user agent show a "#" URI used in the `href'
attribute of script-only `a' elements; it is much more reasonable to show
a more detailed description what the element will do when it is activated.


That is usually left to interface design - what something will do in
response to some user action should be obvious without the user having
to actually do the action. Relying on the status bar to give feedback
is pretty useless.

Different browsers put different things into the status bar - Safari,
for example, advises if clicking a link will open a new window.
Presumably if users take any notice of the status bar they will chose a
browser that puts information in there that is useful to them.

Most users never look at the status bar, their attention might be drawn
to it by animated scrolling banners, but that's about it. For general
advice it is almost worthless, hence the use of script-driven elements
and the title attribute as tool tips.

I like web designers who keep their attention inside the window frame
and not mess with anything outside that.

--
Rob
Nov 8 '05 #5
Thomas 'PointedEars' Lahn a écrit :
Gérard Talbot wrote:

[hide URIs in status bar]
What you are trying to do is NOT user-friendly. Only hackers and some
"original"/strange unorthodox web designers try to mask or hide the url
of their links.

s/hackers/crackers/

And it is still not entirely true. There are good reasons for hiding the
URI and there are good reasons for not doing so. For example, there is
not much point in letting the user agent show a "#" URI used in the `href'
attribute of script-only `a' elements;

Using a pseudo-link is already a design flaw; trying to mask it is
another error... unless your intent are malicious to begin with.
Modifying the normal, standard behavior of a browser for dubious intent
or poor design purposes will never be acceptable from a fundamental
security perspective. The web designer can do whatever he wants inside a
sand box; he never should have powers outside that sand box.

Gérard
--
remove blah to email me
Nov 9 '05 #6
Gérard Talbot wrote:
yb a écrit :
Hi,

In Mozilla and IE, setting an event handler for "onmouseover" for a
link, (i.e. 'a' element) and return false will prevent the status
message from showing the links href value.


... if and only if the user has not check
Edit/Preferences.../Advanced/Allow scripts to:/Change status bar text


Hey! Which version of Safari has Preferences in the Edit menu? Last time
I looked, it was in the 'Safari' menu!! ;-)

[...]

--
Rob
Nov 9 '05 #7
Gérard Talbot wrote:
Thomas 'PointedEars' Lahn a écrit :
[...] There are good reasons for hiding the URI and there are good
reasons for not doing so. For example, there is not much point in
letting the user agent show a "#" URI used in the `href' attribute
of script-only `a' elements;


Using a pseudo-link is already a design flaw; [...]


No, it is not. That "pseudo-link", as you call it, is of course created
by client-side script and the possibility of using an input[type="button"]
or button element instead was considered and rejected (not out of a lack
of CSS knowledge, I assure you).
PointedEars
Nov 9 '05 #8
RobG wrote:
Thomas 'PointedEars' Lahn wrote:
[...] There are good reasons for hiding the URI and there are good
reasons for not doing so. For example, there is not much point in
letting the user agent show a "#" URI used in the `href' attribute
of script-only `a' elements; it is much more reasonable to show a
more detailed description what the element will do when it is
activated.


That is usually left to interface design - what something will do in
response to some user action should be obvious without the user having
to actually do the action. Relying on the status bar to give feedback
is pretty useless.


Of course, nobody said it is to be relied on it. I thought that "more
detailed description" implied that this element already has content.
PointedEars
Nov 9 '05 #9
I came up with the following:
<a href="URL_GOES_HERE.html" onMouseOver="javascript:window.status='TEXT GOES HERE'; return true;" onMouseMove="javascript:setTimeout('window.status= \'TEXT GOES HERE\'', 0); return true;">LINK TEXT</a>
NOTE: The onMouseMove code:
TEXT GOES HERE\'', 0);
is two single quotes preceded by a slash (\'') and NOT a double-quote preceded by a slash, in case you get flustered by quotes like me!

In Safari, it needs a setTimeout() function to change the window status, but if you move your cursor around while it's over the link (after the original mouseOver event), Safari replaces the "TEXT GOES HERE" with the URL. Therefore, I made the Safari function work on an onMouseMove event. I also needed to include the onMouseOver event, because without it, Windows IE would bounce between the URL and the "TEXT GOES HERE" text as I moved my mouse over the link.

Please post any problems/insights you may have to this issue!
May 7 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Bernard | last post by:
Hi, I am suddenly getting Safari script errors with the following user agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/125.2 (KHTML, like Gecko) Safari/125.8 In a...
4
by: Paul W | last post by:
Hi - can someone point me to info on the issues/resolutions of supporting the safari browser? To help me understand, if I was developing pages in say FrontPage, what attributes would I set for...
2
by: JThomas | last post by:
Hello! I'm having trouble with a page apparently causing my client's Safari browser to time out. I don't actually have access to a Mac & Safari, and haven't been able to physically see this...
2
by: Martin Honnen | last post by:
I was playing around with canvas support in recent Safari, Mozilla and Opera (only version 9 preview) but run into issues with Safari related to the very old DOM Level 0 Image object for preloading...
6
by: dpodkuik | last post by:
I have a simple function that does submit for me: <script language="javascript" type="text/javascript"> function sort() { //selected item value from the drop down list var...
2
by: Andrew Poulos | last post by:
Testing locally on an Win XP box with the safari pop up blocker disabled: window.close(); will close the window without warning even though the window was not opened by javascript. win =...
2
by: JDeats | last post by:
>From my development envrionment (i.e. a single WinXP notebook PC) I have a basic AJAX application that is making the call to a Windows Form page that just returns the request back to the AJAX...
6
by: raknin | last post by:
I am creating a dynamic list on the server using php file,when I run the PHP script in all 4 browsers (IE 6, Firefox 2, opera and safari 3) every think go Ok and the list is created. but when I call...
15
by: GinnTech | last post by:
I have a site that works perfectly in IE6 IE7 FF2 FF3 but not in the latest Safari. Here is the issue. I am attempting to call functions within a flash object. When trying to attempt to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.