|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
status bar blank?
(Shadow----yip plenty of Irish cream..)
I wish to have the status bar blank when all the (<a href="...) links on a page are hovered over or clicked..any suggestions ?, without having to add ( onmouseover="window.status=' '; return true" ) and the same with onclick in every link. Is there a css style command to do this simply.? (I know u know this already in ur head Shadow!) |
|
#2
|
||||
|
||||
|
The only interaction between CSS and the status bar that I am aware of is the ability to change the font in the status-bar in CSS2. I do not believe that you'll be able to avoid using javascript to manipulate the status bar.
__________________
If you found a post of mine helpful, please click on the on my post to add to my reputation.
|
|
#3
|
||||
|
||||
|
well, css by defintion is used only for style while you need to dynamically change some value. so you can't avoid using client side code.
however, such code can make it much easier: Code:
<html>
<head>
<title>eliminate status example</title>
<script language="javascript">
var blnChangeStatus=false;
var strStatusText="";
var iTimer=0;
window.onload = function()
{
//set global value:
for (var i=0; i<document.links.length; i++)
{
var curLink=document.links[i];
curLink.onmouseover=function ()
{
blnChangeStatus=true;
}
curLink.onmouseout=function ()
{
blnChangeStatus=false;
}
}
}
function GlobalTimer()
{
//check if need to change status text:
if (!blnChangeStatus)
return false;
//change status:
window.status = strStatusText;
}
iTimer = setInterval("GlobalTimer();", 50);
</script>
</head>
<body>
<a href="page1.asp">page1</a><br />
<a href="page2.asp">page2</a><br />
<a href="page3.asp">page3</a><br />
</body>
</html>
|
|
#4
|
|||
|
|||
|
status bar blank?
OK guys...whats ur view on the browser "polling" the server all the time to see if the status bar needs to be updated?...is it not a lot of traffic to/from the server which is not really nesessary?....only expressing my thoughts in print ......what about disabling or hidding the status bar completely..I dont need it for my app so far !......is that easy?.......I just dont want the users to see the file names, struture and what data is passed to the server.....I also think it distracts the user a bit when they move the mouse onto a link and see the text appear, they tend to read it even if it doesnt mean anything to them.....!!.......>>>
|
|
#5
|
||||
|
||||
|
You can't hide the status bar from everyone. Most browsers won't let you disable a feature on the fly so you'd have to use a javascript popup for a new window and disable the status bar in that new window. However, if that happened to me I'd notice and I wuold go and simply check the pulldown item that says "Status Bar" and boom, it re-appears. You won't be able to be this secretive successfully without having to put the user through hoops to get them into a browser environment that makes you comfortable. I know you have your reasons for not wanting people to see the URL but you should just let it happen. Unless you made everything a javascript onclick even so that the URLs were all a href="javascript:;" but that would keep you out of search engines that look at who you link to.
I guess what I'm saying is, so what if they read it. |
|
#6
|
|||
|
|||
|
status bar blank
OK Shamrog..many thanks for ur thoughts...this app is for the works' intranet only, so no search engines will see it, if that gives u an idea, like that one to make all links point to a javscript function...yeh I suppose that is a lot of coding...will think about that though.....cul..>>>
|
|
#7
|
||||
|
||||
|
yes it is unnecessary coding. You might just want to open your app in a new window (javascript popup) and tell it to not set the status bar.
|
|
#8
|
||||
|
||||
|
same ideas here. no magic trick this time...
![]() |
|
#9
|
||||
|
||||
|
just out of sheer curiosity, what is the concern about having users of the intranet see the window status?
|
|
#10
|
|||
|
|||
|
status bar blank
No real concern about the users seeing the bar, just thought of hiding all unecessary code . Thought it was an easy matter to hide it thats all.....I give up on this one then, thanks chaps...I've more pressing probs....which I'll start in a new thread...one is how to "talk" to other windows programs from the my app, and how to deal with pictures!!...cul..>>
|
|
#11
|
||||
|
||||
|
talk with other programs?? looks to me that you need to build Windows Application, not ASP application. ASP was never meant, and can't actually, talk with other windows programs. it's meant only to create web pages.
|
|
#12
|
|||
|
|||
|
status bar blank
OH Sh***.!!....now I find this out....Yeh..I have a windows program that I need to talk to and extract data from....You see I created this app on EXCEL (working OK at present) and thought Id make it more efficient and 'modern' by creating it on the intranet !.....as each user has a full copy of the excel version separately and if i need to make a change, i have to do in each copy, whereas on the web i only have to change one page. It also means each user has effectively just a 'front end' with the database etc in a central position, not the whole app at each users' PC.......ummmm...does this mean a complete re-think?, before I go any further into it........really disapointing news......as it is 'looking' well so far ........(I need to go and take a pill and a have a drink now !!!)..cul...>>>>
|
|
#13
|
||||
|
||||
|
cheer up... there are ways to go around it. not very simple, but it is possible.
![]() for example you can have text file that will be used as "interface" between ASP and the other program, kind of "bridge"... in this text file both ASP and other windows programs will put any data they wish to share, and its location will be public - for example shared folder in the network. sounds possible? |
|
#14
|
|
|
|