Jump to content


Photo

include/reload


  • Please log in to reply
2 replies to this topic

#1 nvdw

nvdw
  • New Members
  • Pip
  • Newbie
  • 4 posts

Posted 17 October 2006 - 03:12 PM

Hello,

I'd like to know if it's possible not reloading the page when you click a link (with includes).

This is the code i'm using to include the pages:

$_GET['page'] = (isset($_GET['page']) ? $_GET['page'] : 'start');
$pages= array('start','test');
if(!in_array($_GET['page'], $pages)){
  include('error.php');
}else{
  include($_GET['page'].'.php');  
}


This works fine, but i also have a sfw above the content and i don't want it to reload each time you click on a link.
I'd also like to do this without frames.

I hope someone knows how to do it. Thank you

#2 b_angelr

b_angelr
  • New Members
  • Pip
  • Newbie
  • 6 posts

Posted 17 October 2006 - 03:17 PM

You could use AJAX, i know there is a framework that loads files, or youcould requery the database when you click on a link and change your content

#3 nvdw

nvdw
  • New Members
  • Pip
  • Newbie
  • 4 posts

Posted 17 October 2006 - 03:54 PM

So it wont work with some kind of include system?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users