Javascript - Updating web pages with snippets from other pages

This is a discussion on "Javascript - Updating web pages with snippets from other pages" within the JavaScript Forum section. This forum, and the thread "Javascript - Updating web pages with snippets from other pages are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jul 9th, 2007, 01:16
Junior Member
Join Date: Jun 2007
Location: London
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Post Javascript - Updating web pages with snippets from other pages

Hey Guys,

I am currently building a web page for a client and I am looking to have small snippets in the website where the latest forum topics and latest reports (from the forum and reports sections) can be displayed in small sections on the home page.

So I basiaclly want a script that will fetch the top 5 topics or articles and display them on the home page.

I have been informed Javascript is probably the best way to get this done?

Anyone any free scripts which might be helpful in this? Any help would be much appreciated.
Reply With Quote

  #2 (permalink)  
Old Jul 9th, 2007, 01:27
SuperMember

SuperMember
Join Date: May 2006
Location: North West, UK
Age: 21
Posts: 1,173
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Javascript - Updating web pages with snippets from other pages

You'd be better doing this with php, I think. If all your articles and reports are in a database then it would be simple enough to pull out a title and summary from said DB and pop it on your home page. I say simple, I would imagine it would be a damn sight easier than any JS solutions.

Pete.
Reply With Quote
  #3 (permalink)  
Old Jul 9th, 2007, 02:01
Junior Member
Join Date: Jun 2007
Location: London
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Javascript - Updating web pages with snippets from other pages

Yeh I thought it would be a php job but limited php experience makes me slightly hesitent!

Problem being none of the articles will be in a database but if thats the only way will have to databse them all?

Any links to free scripts that might help?
Reply With Quote
  #4 (permalink)  
Old Jul 10th, 2007, 14:38
1840dsgn's Avatar
SuperMember

SuperMember
Join Date: Jun 2007
Location: Canterbury
Age: 19
Posts: 717
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Javascript - Updating web pages with snippets from other pages

Just do a Google search on 'Displaying data from a database PHP' you should get some good tutorials.

If you can put them in a database this is a really quick and easy way to do it (MySQL DB). I didn't have a clue about PHP but have done a few tutorials and have built my own CMS and my own Blog Engine (see the link in my Sig). This displays the top 5 posts from the database on the homepage so similar to what you want. the code isn't difficult once you get your head round it and it really is SO useful!

MySQL and PHP together are a POWERFUL tool to have as a web developer.
Reply With Quote
Reply

Tags
fetch, from pages, information

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Javascript menu - does not work on title page, but does work on other pages Crystal Phoenix Starting Out 4 Mar 24th, 2008 19:40
Updating numerous pages at the same time. mikka23 Web Page Design 12 Jan 1st, 2007 20:22
Help Updating News Pages musicnewsuk Web Page Design 8 Dec 10th, 2006 01:38
updating html pages client-side forry Web Page Design 10 Jun 19th, 2006 20:25
Scripting Needed(adding pages to pages) Amari Classic ASP 1 Sep 4th, 2004 18:06


All times are GMT. The time now is 22:40.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43