Forum Moderators: open

Message Too Old, No Replies

complete web page refreshes, but only <td> refresh needed

         

kristof_v

3:05 pm on Oct 18, 2005 (gmt 0)

10+ Year Member



hi,

when the user clicks on a link the following code is executed:
href="index.php?page=****.htm"

in the <td> element of the webpage where the links are shown i have the following php code:
include($_GET['page'])

this has as a result that the complete webpage is refreshed.
but i only want to refresh the <td> element.

is there a way to do this, by not using an iframe?

grtz kristof

kaled

3:25 pm on Oct 18, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I believe the only other alternatives are to use and <img> or use the javascript innerHtml property. You might also try searching for javascript ajax but I know nothing of this technology.

Kaled.

dcrombie

3:25 pm on Oct 18, 2005 (gmt 0)



You could use XMLHttpRequest (a.k.a. 'Ajax') but that seems like overkill. Most sites will just load the whole page - unless you want to go back to frames...

kristof_v

4:23 pm on Oct 18, 2005 (gmt 0)

10+ Year Member



ok thx for your replies.

but normally the webpage will be cached by the browser so there is no need to get the complete webpage from the internet right?
so this complete refresh that occurs everytime shouldn't be a big issue if i'm correct.

grtz kristof