Results 1 to 2 of 2

Thread: how can i dynamically update my news div

  1. #1
    Join Date
    Dec 2006
    Posts
    54

    how can i dynamically update my news div

    Hi guys,

    On my website I have a news div which a add recent changes and updates. I want to implement a way I can dynamically update the new div, rather then make changes and upload the entire page. also i want to keep it the same height. can someone please advise me?

    thanks

    www.hailstorm.com.au

  2. #2
    Join Date
    Feb 2006
    Location
    Salisbury UK
    Posts
    4,332
    If the content is going to change it looks as if you will need scrollable divs. Set the size and add overflow: auto; (or overflow: scroll which will always show scroll bars).
    http://www.wickham43.supanet.com/tut...llingdivs.html

    For dynamic uploading RSS is often used by major websites so that viewers always have the up to date content.

    PHP or SHTML is often recommended if you want to update yourself without changing the whole page or many pages where the same information is to be shown.

    For SHTML or PHP you insert a code in each page and create a separate "include" file which means you only update one file which only has your News code.

    See http://www.wickham43.supanet.com/tut...eincludes.html
    Code downloaded to my PC will be deleted in due course.
    WIN7; IE9, Firefox, Opera, Chrome and Safari for Windows; screen resolution usually 1366*768.
    Also IE6 on W98 with 800*600 and IE8 on Vista 1440*900.

Posting Permissions

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