473,434 Members | 1,430 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,434 software developers and data experts.

Can Hide Browser Statusbar

Hi,

this is confusing to me: When I clear the status bar to hide a hyperlink
using the below onmouseover event, the original status text (the hyperlink
target URI) re-appears when the user clicks the link and the new page is
loaded. What am I doing wrong?

TIA,
Axel Dahmen

<a href="javascript:document.forms["myFrm"].submit();"
onmouseover="status=''; return true;">
</a>


Sep 4 '05 #1
11 9784
Axel Dahmen said the following on 9/4/2005 4:02 PM:
Hi,

this is confusing to me: When I clear the status bar to hide a hyperlink
using the below onmouseover event, the original status text (the hyperlink
target URI) re-appears when the user clicks the link and the new page is
loaded. What am I doing wrong?


1) Using a link to submit a form.
2) Using the javascript: pseudo-protocol.
3) Munging around with the status bar.

<input type="submit" value="Submit the Form">

Now, you have no status bar text to be worried about.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Sep 4 '05 #2
Axel Dahmen wrote:
When I clear the status bar to hide a hyperlink using the below
onmouseover event, the original status text (the hyperlink
target URI) re-appears when the user clicks the link and the new page is
loaded. What am I doing wrong?


1: http://jibbering.com/faq/#FAQ4_24

2: Trying to submit a form by having the user click on something other than
a submit button.

3: Trying to hide information from the user in the first place. Leave the
status bar alone.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Sep 4 '05 #3


You're setting window.status upon mouseover, it never gets unset, until
another event writes to it, onmouseover sets, onmouseout unset :), however,
in default settings for mozilla/ff access to the window.status object is
canceled if you check the js options under Edit > preferences, so,
window.status='anything' won't work using default settings in mozilla/ff.

Danny
Sep 4 '05 #4
Thanks for the responses. Actually I was asking for a solution not for
attitude....

I need to code it this way for three reasons:

1) The destination page only accepts form parameters, no query string. I
have no influence on that.

2) My page is a list containing items. There's nothing quicker to handle
than one single click, hence this solution is user-frienly.

3) I don't want the user to read "javascript:submitForm(...)". It's not
his/her business.
So my question again: Is it possible to keep the status bar clean even when
the user has clicked on one of the hyperlinks?

TIA,
Axel Dahmen
Sep 5 '05 #5
Axel Dahmen wrote on 05 sep 2005 in comp.lang.javascript:
3) I don't want the user to read "javascript:submitForm(...)". It's
not his/her business.
So my question again: Is it possible to keep the status bar clean even
when the user has clicked on one of the hyperlinks?


So don't use hyperlinks

<span onclick='submitForm(...);' style='cursor:pointer;'>
submitform</a>

or

<button onclick='submitForm(...);'>
submitform</button >

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Sep 5 '05 #6
Thanks Evertjan, I'll try these.

Regards,
Axel Dahmen
--------------
"Evertjan." <ex**************@interxnl.net> schrieb im Newsbeitrag
news:Xn*******************@194.109.133.242...
Axel Dahmen wrote on 05 sep 2005 in comp.lang.javascript:
3) I don't want the user to read "javascript:submitForm(...)". It's
not his/her business.
So my question again: Is it possible to keep the status bar clean even
when the user has clicked on one of the hyperlinks?


So don't use hyperlinks

<span onclick='submitForm(...);' style='cursor:pointer;'>
submitform</a>

or

<button onclick='submitForm(...);'>
submitform</button >

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Sep 5 '05 #7
Axel Dahmen wrote:
Thanks for the responses. Actually I was asking for a solution not for
attitude....
"Get real! This is a discussion group, not a helpdesk. You post something,
we discuss its implications. If the discussion happens to answer a question
you've asked, that's incidental." -- nobull in comp.lang.perl.misc
1) The destination page only accepts form parameters, no query string. I
have no influence on that.
So use a submit button as suggested (instead of JavaScript and a hyperlink).
2) My page is a list containing items. There's nothing quicker to handle
than one single click, hence this solution is user-frienly.
A submit button only requires one single click, so a submit button is also
user-friendly.
3) I don't want the user to read "javascript:submitForm(...)". It's not
his/her business.


Leaving aside the fact that what a webpage asks a user's browser to do IS
the business of the user ... use a submit button and it won't display that.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Sep 5 '05 #8
Well , you could have your script assign the onclick event
dynamicly such as in this faux a:hover demo
http://66.33.202.15/projects/jsDHTML...ver/Hover.html

None of the attributes in the <a></a> reflect the scripting
being used to make the fake a:hover effect.

Since the code used *inserts* the event handler in memory , they are not
seen, and additionally since it *inserts* the event handler, it leaves
any existing onWhatever= attributes specified in the page intact and
functioning.

The href can contain anything you want. The onmouseover,onclick or
whatever can look any way you type it, and your "hidden" handler
will still run
Axel Dahmen wrote:
Thanks for the responses. Actually I was asking for a solution not for
attitude....

I need to code it this way for three reasons:

1) The destination page only accepts form parameters, no query string. I
have no influence on that.

2) My page is a list containing items. There's nothing quicker to handle
than one single click, hence this solution is user-frienly.

3) I don't want the user to read "javascript:submitForm(...)". It's not
his/her business.
So my question again: Is it possible to keep the status bar clean even when
the user has clicked on one of the hyperlinks?

TIA,
Axel Dahmen


--
--.
--=<> Dr. Clue (A.K.A. Ian A. Storms) <>=-- C++,HTML/CSS,Javascript,TCP ...
--`
Sep 5 '05 #9
Dr Clue said the following on 9/5/2005 3:19 PM:
Well , you could have your script assign the onclick event
dynamicly such as in this faux a:hover demo
http://66.33.202.15/projects/jsDHTML...ver/Hover.html

None of the attributes in the <a></a> reflect the scripting
being used to make the fake a:hover effect.

Since the code used *inserts* the event handler in memory , they are not
seen, and additionally since it *inserts* the event handler, it leaves
any existing onWhatever= attributes specified in the page intact and
functioning.

The href can contain anything you want. The onmouseover,onclick or
whatever can look any way you type it, and your "hidden" handler
will still run


That advice is almost, but not quite, as bad as the original way of
doing it. All of that extra work and coding can be done away with,
completely, and without even using some "library". You use a submit
button and your problem is gone.

Learn to quote.
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Answer:It destroys the order of the conversation
Question: Why?
Answer: Top-Posting.
Question: Whats the most annoying thing on Usenet?
Sep 5 '05 #10


Randy Webb wrote:
Dr Clue said the following on 9/5/2005 3:19 PM:
Well , you could have your script assign the onclick event
dynamicly such as in this faux a:hover demo
http://66.33.202.15/projects/jsDHTML...ver/Hover.html
<snip> That advice is almost, but not quite, as bad as the original way of
doing it. All of that extra work and coding can be done away with,
completely, and without even using some "library". You use a submit
button and your problem is gone.


Actually the jsDHTMLlib.js is not used for the event capturing aspect,
so the 25 lines of relevant code is no big deal, and they can simply
cut-n-paste, and point it to their desired function.

As to the choice of using a button or a link, I do agree with you
that the button would be a cleaner approach.

I don't tend to argue with the questions that much, but rather just
answer them, allowing the "discussion" aspect of the ng to play out.

I'm pretty sure the button approach has been championed
by at least yourself, so I'm just answering the question and
allowing the OP to dine on everyones thoughts, including yours.

As to the trolling aspect of your response. ( not interested ), but
thanks for offering.

--
--.
--=<> Dr. Clue (A.K.A. Ian A. Storms) <>=-- C++,HTML/CSS,Javascript,TCP ...
--`
Sep 5 '05 #11
Lee
Axel Dahmen said:

Hi,

this is confusing to me: When I clear the status bar to hide a hyperlink
using the below onmouseover event, the original status text (the hyperlink
target URI) re-appears when the user clicks the link and the new page is
loaded. What am I doing wrong?

TIA,
Axel Dahmen

<a href="javascript:document.forms["myFrm"].submit();"
onmouseover="status=''; return true;">
</a>


1. You're using a side-effect of the "javascript:" pseudo-protocol
to submit a form. That's always a bad idea.

2. You're trying to hide the URL in the status bar. That's silly
and impossible in many modern browsers.

3. You're expecting the status to remain cleared after a new
page has loaded.

Sep 5 '05 #12

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

Similar topics

3
by: Dan | last post by:
Using a standard status bar control and the VB browser control I want to be able to display the URL of a link that is hovered over in the browser control. Documentation indicates that the browser...
2
by: Scott | last post by:
How can I get text to remain on the Browser's statusbar? For example, if I'm saving data to a DB Table after a user clicks a Button in the ASP page, I want the statusbar to show something like...
4
by: Tonya | last post by:
Hi, Does anyone know how i can add controls to a progress bar. I have searched the internet but could not find any examples. what i want to add is a progress bar and a button. thx
9
by: Targa | last post by:
I know you can do an onmouseover/onmouseout to display alternate text for links but Im looking for a script that would cover all links on a page without having to add code to each link. Is there...
18
by: Andrew Poulos | last post by:
If I manage to call the following bit of javascript in IE and MZ w = window.open("", "s", 'status=no,resizable=no,width=450,height=450'); I get a window that is not resizable and without a...
9
by: Christian Blackburn | last post by:
Hi Gang, I've had this happen with a couple of controls now, but my patience has worn thin. Can somebody tell me why I can read/write to most objects on my form from my module, but not when...
6
by: Nikron | last post by:
Hi, How would I hide the pages that the user is surfing and just show him/her the domain name. E.G. www.google.com as opposed to www.google.com/index.aspx etc... Thanks
1
by: herve | last post by:
Hi, everybody I'm working with wxPython 2.8.1.1. Does anybody know how to change the foreground colors in a wx.StatusBar
3
by: S. Viswanathan | last post by:
Hi everybody! In VB.NET 2005, MenuStrip and Statusstrip controls added. When the mouse over on the Menuitem its corresponding Tooptip text should be displayed in the statusstrip. How to...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
1
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...
0
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,...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.