reloading page from PHP script included with javascript

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • red

    reloading page from PHP script included with javascript

    I have a page with a div which is filled with content from a PHP
    script via javascript and innerhtml.

    Sometimes, depending on the results of the PHP script, I want to to
    reload the entire page, not just the div . However if I put a PHP
    redirect in the script, it just loads the entire page into the div..
    This makes sense, since the I put the contents of the script page into
    the div, redirected or not. But how do I tell PHP to reload the entire
    page ?
  • Jerry Stuckle

    #2
    Re: reloading page from PHP script included with javascript

    red wrote:
    I have a page with a div which is filled with content from a PHP
    script via javascript and innerhtml.
    >
    Sometimes, depending on the results of the PHP script, I want to to
    reload the entire page, not just the div . However if I put a PHP
    redirect in the script, it just loads the entire page into the div..
    This makes sense, since the I put the contents of the script page into
    the div, redirected or not. But how do I tell PHP to reload the entire
    page ?
    >
    You can't. You're requesting it from the client end, so you'll have to
    handle it from the client end.

    --
    =============== ===
    Remove the "x" from my email address
    Jerry Stuckle
    JDS Computer Training Corp.
    jstucklex@attgl obal.net
    =============== ===

    Comment

    Working...