Hi,
I'm having an issue with the status bar in Mozilla and Netscape showing that
it is still waiting on the page to load even after it is finished. This
problem does NOT occur with IE.
In summary, I am using a onLoad event in the BODY tag to communicate back to
another server each time a page finishes loading. I do this by using a "new
Image()" and setting the .src property to the server. The .src includes a
value in the querystring so I know what request it was that finished
loading.
The challenge here is that the status bar still shows "Transferri ng data
from www.mysite.com. .." despite the image being loaded. It never clears and
leaves the user with the impression that there was a problem loading the
page. My web server logs at the mysite.com show that the browser does
indeed make a request for the image and I get the querystring just fine and
it returns a status of 200 so the image is being found and served ok.
I've tried everything I can think of to solve this and really could use your
help please. Bottom line is that if you use the "new Image" statment from
within the OnLoad event of the Body tag, Netscape and Mozilla never seem to
update the status bar to show "Done" despite it succesfully loading the
image.
Here is a simply snippet you can use to easily reproduce this issue:
CASE A:
<html>
<body onLoad="var img = new Image(1, 1); img.src =
'http://www.mysite.com/img.gif';" >
</html>
Case A results in a status bar that indefinately shows "Transferin g data
from www.mysite.com. .."
Now interestingly if you change the .src so that its a relative URL instead
of absolute the problem goes away, like this:
CASE B:
<html>
<body onLoad="var img = new Image(1, 1); img.src = '/img.gif';" >
</html>
With this Case B the status bar says Done as expected and all works great.
The challenge here is that the web server that the page is running from and
the web server that I need to make the new Image .src request go to are two
different servers. So I must use the absolute URL.
I wanted to pass this additional information along however because it may
spur some ideas as to what is going on and how I can correct it.
I've tried a variety of things such as trying to clear the status bar by
forcing a window.status=" " after the .src property is set, but that doesn't
help. I also tried other things such as using setTimeout to delay the .src
property being set to x milliseconds after the Body OnLoad event fires, but
in this case the same thing happens to the status bar (except that the
"Transferri ng data from..." message just shows up x milliseconds later.
Interestingly Firefox does not suffer from this behavior, nor does IE. It
seems specific to Mozilla and Netscape, trying the latest version of each.
Any help, tips or suggestions would be GREATLY appreciated!! Thanks so much
in advance.
--- Mike 3 4388
Mike Dee said the following on 2/20/2006 11:09 AM: Hi,
I'm having an issue with the status bar in Mozilla and Netscape showing that it is still waiting on the page to load even after it is finished. This problem does NOT occur with IE.
In summary, I am using a onLoad event in the BODY tag to communicate back to another server each time a page finishes loading. I do this by using a "new Image()" and setting the .src property to the server. The .src includes a value in the querystring so I know what request it was that finished loading.
The challenge here is that the status bar still shows "Transferri ng data from www.mysite.com. .." despite the image being loaded. It never clears and leaves the user with the impression that there was a problem loading the page. My web server logs at the mysite.com show that the browser does indeed make a request for the image and I get the querystring just fine and it returns a status of 200 so the image is being found and served ok.
I've tried everything I can think of to solve this and really could use your help please. Bottom line is that if you use the "new Image" statment from within the OnLoad event of the Body tag, Netscape and Mozilla never seem to update the status bar to show "Done" despite it succesfully loading the image.
Here is a simply snippet you can use to easily reproduce this issue:
CASE A:
<html> <body onLoad="var img = new Image(1, 1); img.src = 'http://www.mysite.com/img.gif';" > </html>
Case A results in a status bar that indefinately shows "Transferin g data from www.mysite.com. .."
Now interestingly if you change the .src so that its a relative URL instead of absolute the problem goes away, like this:
CASE B: <html> <body onLoad="var img = new Image(1, 1); img.src = '/img.gif';" > </html>
With this Case B the status bar says Done as expected and all works great.
The challenge here is that the web server that the page is running from and the web server that I need to make the new Image .src request go to are two different servers. So I must use the absolute URL.
Browser requests the image from server A, server A gets the image from
server B, server A returns the image to the Browser.
Problem solved.
--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
> Browser requests the image from server A, server A gets the image from server B, server A returns the image to the Browser.
Thanks. I'm not exactly seeing how this would work though. If the browser
requests the image from Server A using "new Image()" its making a request
for a .gif. So then how is server A going to act as a broker and make the
request to Server B and pass the result back to the browser?
I was thinking some more about the root cause. Maybe I can work around this
by purposely performing some other action after the image is loaded that
would some how result in the browser then realizing it was done and updating
its status line? Thoughts on this?
--- Mike This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: abcd |
last post by:
kutthaense Secretary Djetvedehald H. Rumsfeld legai predicted eventual
vicmadhlary in Iraq mariyu Afghmadhlaistmadhla, kaani jetvedehly after "a
ljetvedehg, hard slog," mariyu vede legai pressed Pentagjetvedeh
karuvificials madhla reachathe strategy in karkun campaign deshatinst
terrorism.
"mudivae maretu winning or losing karkun global varti jetvedeh terror?" Mr.
Rumsfeld adugued in a recent memormariyuum. vede velli jetvedeh madhla...
|
by: Paul |
last post by:
Hi,
I'd like to limit the number of selections a user can make in a
multiple select listbox. I have a note on the interface to say that
only x no. of items should be selected and I check the number server
side but I'd like to implement some javascript to do the same on the
client side. Ideally I'd like the javascript to work in IE5+ and
Netscape6+.
Thanks,
|
by: Charles Mendell |
last post by:
1. When I go to http://www.w3schools.com/js/default.asp and choose:
2. JS HTML DOM and then choose:
3. the Window object and then choose:
4. Write some text in the windows status bar ( a link)
5. Before I write the script, the IE shows current time in status bar
6. After I write the script, which writes a message on the status bar:
<script text="text/javascript>
function load()
{
window.status= "Show this text in the status bar"
|
by: Anaam |
last post by:
I have a page which is using html area and it is also uploading image files to be place in an HTML file on server side. im using ajax to send requests to server side.
page works fine, image is place in target html File, as well as text from html area is also inserted to html file. but after call back from ajax firefox's status bar always show "waiting for 192.168.0.1 ... " where im and testing the page during development. also sometimes...
|
by: Sam |
last post by:
Hi,
I have a serious issue using multithreading. A sample application
showing my issue can be downloaded here:
http://graphicsxp.free.fr/WindowsApplication11.zip
The problem is that I need to call operations on Controls from a
delegate, otherwise it does not work. However each time I've done an
operation, I must update the progressbar and progresslabel, but this
cannot be done in the delegate as it does not work.
| |
by: Wayne Gibson |
last post by:
Hi,
I need some advise with a java applet. I am nearing completing of the
project and am getting a little concerned how long it is taking for the
applet to load. I have developed the java applet with Jbuilder using the
JDK 1.1.8 as I need to support users with that haven't installed the latest
version of the Java Runtime.
So I have been searching the internet trying to see how to speed up the
loading process. I've notice that some...
|
by: Simon Wigzell |
last post by:
I have a little asp progress bar window that I open up with javascript,
sized and located, all the extras turned off. It works by refreshing itself
every second and displaying how much a file upload has progressed. (This is
a paid for 3rd party thing so don't ask me to change the way it works!) Even
though I have "status=no" in the javascript window.open statment it has a
status bar and every second the status bar does its thing where it...
|
by: Frances |
last post by:
Firefox is not respecting window.status, examples in this pg
http://www.csua.berkeley.edu/~jgwang/jsform02.htm
are ignored by Firefox.. why is this.. is there a solution.. thank you..
Frances
|
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...
|
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,...
|
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...
| |
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,...
|
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();...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |