Results 1 to 8 of 8
  1. #1
    Join Date
    Sep 2008
    Posts
    718
    Tokens
    0

    Default PHP Include Refreshing :s

    I have it set so that my php include refreshes every 45 sec. How can I make only the include refresh, rather the whole page?
    Thanks in advance :] +rep
    +.net - omg it's coming o_o

  2. #2
    Join Date
    Jun 2005
    Posts
    4,795
    Tokens
    0

    Latest Awards:

    Default

    AJAX or iframes.

  3. #3
    Join Date
    Sep 2005
    Location
    East London
    Posts
    3,028
    Tokens
    0

    Latest Awards:

    Default

    have the included file in ajax or summin much easier

  4. #4
    Join Date
    Sep 2008
    Posts
    718
    Tokens
    0

    Default

    Quote Originally Posted by Jackboy View Post
    have the included file in ajax or summin much easier
    Is there anyway to do it without ajax?
    +.net - omg it's coming o_o

  5. #5
    Join Date
    Dec 2006
    Posts
    3,970
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by HabbDance View Post
    Is there anyway to do it without ajax?
    Iframes, but ajax is the best way to do it. When you do a php include the server adds the included files html to the page before it is sent to the web browser so there is no way to refresh just a php include.
    Lets set the stage on fire, and hollywood will be jealous.

  6. #6
    Join Date
    Nov 2007
    Location
    London
    Posts
    1,577
    Tokens
    36

    Latest Awards:

    Default

    You could just put the PHP include in a normal frame.
    Kind Regards,

    Guy
    __________________

    Since 2007. Unbelievable Uptime. Web hosting, resellers, master resellers, linux VPS, windows VPS, shoutcasts, at the lowest prices on the net.
    Tech-Hosts.co.uk.


  7. #7
    Join Date
    Aug 2005
    Location
    London
    Posts
    9,773
    Tokens
    146

    Latest Awards:

    Default

    Put the Include inside a div then use ajax to refresh just the div, only way without using Iframes?

  8. #8
    Join Date
    Jan 2006
    Location
    UNKNOWN TO EARTH
    Posts
    264
    Tokens
    0

    Default

    Like iUnknown said.. I'd put the include in a iframe.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •