PDA

Click to See Complete Forum and Search --> : [Ask] Refreshing Page Automatically and Print Question ??


Lightzero
Jun 12th, 2006, 07:30 PM
Hi..
I have some question :
1. How to make the Page refresh automatically... ?? :D
(If I'm using IE as browser ,sometimes i got messages :

Warning: Page has Expired
The page you requested was created using information you submitted in a form. This page is no longer available. As a security precaution, Internet Explorer does not automatically resubmit your information for you.

To resubmit your information and view this Web page, click the Refresh button.

This annoying me...:( )
2. How To Print via code (Javascript or PHP)... and make page or source of web dissapear from the print (If I'm using File ->Print.. the source of page, date, and etc will appear like http://localhost/test.php.... page 1.. I don't want this happened) ??? :D

Thank you for your help... :D :D

Kasracer
Jun 12th, 2006, 07:55 PM
1. Nothing you can do about that. If you press the Back button in IE it'll show that. You can use multiple ways to refresh the page but it depends on what you're trying to do or what technique you want to use. You can use a meta tag to do so, you can use javascript, or a simple PHP redirect.

2. How to print via JavaScript (http://www.tizag.com/javascriptT/javascriptprint.php). As for hidding the source, that's just how the browser printers so I don't think there is a way to do that. Oh and you can't print via PHP as it's server side and printing happens on the client side.

Lightzero
Jun 18th, 2006, 08:20 PM
1. Nothing you can do about that. If you press the Back button in IE it'll show that. You can use multiple ways to refresh the page but it depends on what you're trying to do or what technique you want to use. You can use a meta tag to do so, you can use javascript, or a simple PHP redirect.


How To Use Meta Tag ????

lintz
Jun 18th, 2006, 10:34 PM
//This refreshes the page every 4 seconds
<meta HTTP-EQUIV="REFRESH" CONTENT="4; URL=yourpage.php">

Lightzero
Jun 19th, 2006, 01:53 AM
It looks like my Post Variable also lose... :(
How to Re-Post my Post Variable .... ????
And, when I press Back Button, it's still want me to Refresh the Page ???