Alvaro G Vicario wrote:
*** Nik Coughlin wrote/escribió (Mon, 16 Aug 2004 20:52:37 +1200): How can I partially update a page using javascript if javascript is
available, but do a full update if it's not, using php?
Since PHP is a server-parsed language, there's no way to execute PHP
code without loading the page from the server. I guess you are
looking for a JavaScript trick called "iframe scripting": use these
keywords in Google and you'll probably find something.
Hi Alvaro,
Looks like I didn't explain myself very well.
Somes sites use JavaScript to do a partial update, ie change text on a page,
make a message box appear etc. without reloading the whole page. What I
want to be able to do is, if they have JavaScript, load the page once and
from then on manipulate the dom when the page changes, without reloading the
page. However, if they don't have JavaScript, I want to construct a full
new page using php and load that instead. I've done this before with
Intraweb but I want to use PHP as the back end this time.
I'm not sure if what Martin suggested is what I mean, I will have a look
now.