473,657 Members | 2,458 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Safari support for window.status

yb
Hi,

In Mozilla and IE, setting an event handler for "onmouseove r" 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 3689
yb a écrit :
Hi,

In Mozilla and IE, setting an event handler for "onmouseove r" 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.javas cript 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 "onmouseove r" 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
answers
1 New Member
I came up with the following:
<a href="URL_GOES_ HERE.html" onMouseOver="ja vascript:window .status='TEXT GOES HERE'; return true;" onMouseMove="ja vascript:setTim eout('window.st atus=\'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
6010
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 frameset scenario, the framesetting document (top) contains a
4
2712
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 'target browser'? I'm having a helluva time with table layouts etc and goin' stir crazy.. Thanks, Paul.
2
3371
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 duplicated, but this is the descrip of the problem: >From Client's Point of View: 1. Client, using Safari, fills out a form on one page, submits (POST). 2. Timeout - never sent to next page (submit button is working, but
2
6450
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 images. When doing e.g. var img = new Image(); img.onload = function (evt) { alert(this); }; img.src = 'whatever.gif';
6
5271
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 dud=window.document.statusForm.sortByStaff.value; window.document.statusForm.action="status.cfm?sortBy="+dud; window.document.statusForm.method="post";
2
4744
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 = window.open("test.htm","foo");//, str); alert(win); does not open a new window and the value displayed by the alert is "undefined" (shouldn't it be "null" if there was a problem???). Also
2
2739
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 client from the JavaScript HttpXMLRequest protected void Page_Load(object sender, EventArgs e) { string txt = ""; string input = null;
6
1945
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 the php script from the browser using Ajax, the list is created fine in IE and Opera but on Firefox and safari I got the following error: "Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in...
15
2645
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 retrieve the object to call the functions IE6 IE7 FF2 FF3 all return Objects to work with. In Safari a function is returned. Here is the code. /
0
8421
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8325
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8518
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7354
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6177
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5643
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4173
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2743
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1734
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.