Results 1 to 5 of 5

Thread: [Ask] Refreshing Page Automatically and Print Question ??

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2006
    Posts
    47

    [Ask] Refreshing Page Automatically and Print Question ??

    Hi..
    I have some question :
    1. How to make the Page refresh automatically... ??
    (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) ???

    Thank you for your help...

  2. #2
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985

    Re: [Ask] Refreshing Page Automatically and Print Question ??

    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. 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.
    KrisSiegel.com - My Personal Website with my blog and portfolio
    Don't Forget to Rate Posts!

    Free Icons: FamFamFam, VBCorner, VBAccelerator
    Useful Links: System.Security.SecureString Managed DPAPI Overview Part 1 Managed DPAPI Overview Part 2 MSDN, MSDN2, Comparing the Timer Classes

  3. #3

    Thread Starter
    Member
    Join Date
    Mar 2006
    Posts
    47

    Re: [Ask] Refreshing Page Automatically and Print Question ??

    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 ????
    It's hard to find something that doesn't exist in reality.....
    Sorry If My English is very Bad....

  4. #4
    PowerPoster lintz's Avatar
    Join Date
    Mar 2003
    Location
    The 19th Hole
    Posts
    2,697

    Re: [Ask] Refreshing Page Automatically and Print Question ??

    PHP Code:
    //This refreshes the page every 4 seconds
    <meta HTTP-EQUIV="REFRESH" CONTENT="4; URL=yourpage.php"

  5. #5

    Thread Starter
    Member
    Join Date
    Mar 2006
    Posts
    47

    Re: [Ask] Refreshing Page Automatically and Print Question ??

    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 ???
    It's hard to find something that doesn't exist in reality.....
    Sorry If My English is very Bad....

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width