Jump to content

iframe not refreshing in Firefox


akshay

Recommended Posts

Hello.

 

I'm using a php script to upload file. I've used an iframe inserted on the upload page that refreshes every second/3sec. to display percentage uploaded.

 

forget percentage, lets take a simple example.

 

Presently, my iframe displays last two digits of PHP time() function that change constantly. If you see the live example at: http://mintload.com/upload/upload-single.php

The last two digits of time() function are shown and iframe is refreshed every  1 sec.

But, the moment one clicks "Upload" button, the file starts uploading, but iframe no more refreshes & freezes. In IE7 it works fine. Why not in Firefox Latest Ver: 3.6 ?

 

code for iframe:

header("refresh:1; $_SERVER[php_SELF]");
echo substr(time(),-2,2);

 

My point is, just as in IE, my iframe shouldnt freeze refreshing even if a file is being uploaded. Any code/functions?

The problem is taking place in Firefox.

 

Please help. Thank you.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.