Forum Moderators: open

Message Too Old, No Replies

Disable message in status bar when loading the page

         

cipibs

9:10 am on Apr 16, 2003 (gmt 0)

10+ Year Member



Hello,

Do you know a way to disable the message in the status bar that appears when loading a page?
Eg: Finding www.page.com, Connecting ..., Downloading ...

Thanks

BlobFisk

9:55 am on Apr 16, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome [webmasterworld.com] to WebmasterWorld, cipibs!

I don't think that this is possible, as this is part of the browser application. Also, there is no way you can control this as your page has not been loaded by the browser yet. This status is to indicate that the browser is making contact with your site and beginning to download the contents of your page.

The normal window.status is a client side script command, and need the browsers to have loaded the page to work.

HTH

cipibs

11:26 am on Apr 16, 2003 (gmt 0)

10+ Year Member



I do not mean to disable it for good. I need something to mask those messages. Javascript for example

I have a solution with javascript but it's not very "beatifull" and I still get some flashes of thosse messages.
Maybe someone knows a more elegant solution.

Thanks

korkus2000

12:36 pm on Apr 16, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The problem as you state is you are still going to get flashes as they change. You can try inline instead of onload, but as blobfisk says, you will have periods where no javascript can execute. You can always popup a window without the status bar.

cipibs

1:01 pm on Apr 16, 2003 (gmt 0)

10+ Year Member



The Onload solution does not work. This solution will display whatever message only after all of the page is loaded. The best solution I think is to put a javascript that runs imediatly after the browser page appears.

As I wrote I have 3 or 4 very, very short flashes with my solution but I want better. Another thing: I think (not sure) that the flashes are not so often on a faster computer.

korkus2000

1:06 pm on Apr 16, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



>>put a javascript that runs imediatly after the browser page appears

Inline JavaScript. Like I said inline will not work before the page is read to that point. You will also have Flashes during processing. What is the problem maybe there is another solution.

BTW, welcome to the board

BlobFisk

1:19 pm on Apr 16, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



cipibs,

Are you testing your scripts from your local machine? If so, you are not seeing the delay that users will experience when surfing from their location to your site. A delay dictated to by connection speed, internet traffic etc.

The delay is the fact that the browser is making a series of HTTP requests to the server for the information contained on your page. As it does this, the browser flags to you that it is searching for the page (DNS resolution), and then Opening (requesting and receiving the files on your page via HTTP). AFAIK, there is no way of ever getting rid of this by any client-side or server-side language.

You could, as korkus says, open a window without the status bar on eveything other than your main page.

Do you mind if I ask why you want to get rid of this? It's a good way for the user to know that something is happening - that your page is opening - rather than have them sitting there wondering if they will ever see your site!

ShawnR

1:32 pm on Apr 16, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can't get rid of the status info (if the window was opened with it on), but you can over-write it. That is what the javascript that you have (presumably downloaded from somewhere?) does. It sits in a loop and overwrites the status info with blank, or whatever you wish to display instead. As the browser updates the status, you see it, then it gets blanked out again by your javascript until the browser updates it again.

I don't have a solution, but maybe understanding that will help you improve it... i.e. you could try play with the delays in the loop. Personally, I agree with BlobFisk that it is not good practice to remove this info.

Shawn

cipibs

1:58 pm on Apr 16, 2003 (gmt 0)

10+ Year Member



Personally I do not agree with such a solution either, but I was ask to do it.

Here is the story:

I have an ftp space with the corresponding address: www.something.com. On this ftp space there is no support for ASP so I have to use another ftp space. www.else.com/something. I have to use asp on the first page because I have a news display program taken from a database.

The policy of the company is to put all the asp pages on other ftp space so when we lose a client he gets only the html part of the site together with the database.

My boss wants to hide somehow this thing.

A first step was to hide the URL in the Address Bar. I managed to do that working with frames(one frame is not visible). By the way: If you have another solution about changing the URL of the page when loading please let me know.

The second step was to hide the info in the status bar.

That's the story folks(at least the short version one). I'm not proud of it, but what a poor employer can do?

About the other stuff:
For ShawnR: You are right about it. And yes, I noticed too that playing with the delay changes something. I will continue with some other values but I thought someone has a more elegant solution.

Ps: I checked the pages online and offline. There is a difference but the flashes still appear.

korkus2000

2:11 pm on Apr 16, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What about the popup without a status and location bar. That would take care of both problems.

cipibs

2:18 pm on Apr 16, 2003 (gmt 0)

10+ Year Member



I have to use this solution for the index page. So the popup does not work.

korkus2000

2:37 pm on Apr 16, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



hmm... Solution 2. Why can't you change the FTP host, if this is mission critical? AFAIK Javascript is not going to do any better than what you are seeing. I would look at either another host or a supported server side language.

txbakers

2:48 pm on Apr 16, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What does FTP have to do with ASP? And what does all this have to do with the status bar?

I think you ae confusing several issues here.

If your main concern is access to certain areas, make those areas password protected, or set a session variable if a "Non-allowed" person tried to access the page.

Messing with the status bar is NOT a good idea.

cipibs

3:02 pm on Apr 16, 2003 (gmt 0)

10+ Year Member



>>>>Why can't you change the FTP host, if this is mission critical?
This is a last solution for my boss. If can be done different than it's OK.

>>>>>What does FTP have to do with ASP?
On one ftp space I am not allowed to use ASP scripts and on the other I am alowed.

>>>>>And what does all this have to do with the status bar?
I use a frame solution to display info from both sites. On the first ftp space I have the .html page that has a frame content and on the second ftp I have the .asp page.

When I load the page on the status bar I get "Connecting to..., Downloading from..., etc". I do not want those messages.

Hope now it is clear.

korkus2000

3:13 pm on Apr 16, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Are you actually using FTP functionality on your site or do you just mean web storage?

grahamstewart

10:41 pm on Apr 16, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You do realise that if they right click in the frame and select Properties then they would be able to find out the true location of the page?

Plus browsers like Opera use a secondary status bar that pops up while the page is loading and shows 'Connecting..', 'Loading..' etc.

If you have another solution about changing the URL of the page when loading please let me know

You could just use redirects (or mod_rewrite). I am sure someone here can fill you in on how to set them up. Depends what servers you are running though. (Apache? IIS?)

cipibs

6:16 am on Apr 17, 2003 (gmt 0)

10+ Year Member



>>>>Are you actually using FTP functionality on your site or do you just mean web storage?

When I said ftp space I meant the remote serber on witch I upload the pages(html,asp,etc)

>>>>Plus browsers like Opera use a secondary status bar that pops up while the page is loading and shows 'Connecting..', 'Loading..' etc.

I know about that but the importnt hing is to work in Explorer. I know it's not professional but this is what I was asked.

>>>>You could just use redirects (or mod_rewrite). I am sure someone here can fill you in on how to set them up. Depends what servers you are running though. (Apache? IIS?)

I do not know how to do this but I guess I got to have access to the webserver. The server is in another contry.
Unfortuantely I have access only to the ftp space on witch I put my pages.

grahamstewart

6:22 am on Apr 17, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I guess I got to have access to the webserver.

It depends. If they are running Apache and they have given you suitable permissions, then you could just put the redirect information into an .htaccess file and upload it.

cipibs

6:41 am on Apr 17, 2003 (gmt 0)

10+ Year Member



Thanks, I will keep in mind the htaccess solution.