473,795 Members | 2,847 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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="javascrip t:document.form s["myFrm"].submit();"
onmouseover="st atus=''; return true;">
</a>


Sep 4 '05 #1
11 9809
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.javas cript 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:sub mitForm(...)". 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.javas cript:
3) I don't want the user to read "javascript:sub mitForm(...)". 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='submit Form(...);' style='cursor:p ointer;'>
submitform</a>

or

<button onclick='submit Form(...);'>
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.javas cript:
3) I don't want the user to read "javascript:sub mitForm(...)". 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='submit Form(...);' style='cursor:p ointer;'>
submitform</a>

or

<button onclick='submit Form(...);'>
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:sub mitForm(...)". 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,onc lick 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:sub mitForm(...)". 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,onc lick 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.javas cript 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

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

Similar topics

3
7231
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 control was designed to let you set the StatusBar property to true and then use the StatusText property in the StatusTextChange event to get the URL and display it. But the StatusText property isn't implemented so this does not work. Is there...
2
1482
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 "Save Successful" or "Save Failed" so they know something happened. Right now, I'm trying to use the windows.status property, but it just flashes real quickly in the statusbar and then "Done" is displayed.
4
2385
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
20761
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 such a thing? I also know lots of people hate it when you do that but this is for an application which requires IE5.5+ and there is no need for the user to view the links.
18
2500
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 statusbar. Yet FF gives me both a statusbar and the window is resizable! Does this mean that FF does not support these "features" or is there a different way to code them for FF?
9
2084
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 working with StatusBar.Text? Thanks in Advance, Christian Blackburn My Code: Public Class frmMain
6
2927
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
2692
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
2337
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 display the statusstrip text while mouseover on the menuitem? -- Thanks
0
9673
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
9522
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,...
0
10448
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10217
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7544
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
6784
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
5440
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...
0
5566
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2922
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.