By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,347 Members | 1,390 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,347 IT Pros & Developers. It's quick & easy.

reloading page from PHP script included with javascript

P: n/a
red
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 ?
Feb 23 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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.
js*******@attglobal.net
==================

Feb 23 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.