PDA

View Full Version : how can i dynamically update my news div



Vanquish
07 Feb 2007, 06:41 PM
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

Wickham
08 Feb 2007, 03:20 AM
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/tutorial/scrollingdivs.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/tutorial/serversideincludes.html