SE Friendly Dynamic Content

This is a discussion on "SE Friendly Dynamic Content" within the JavaScript Forum section. This forum, and the thread "SE Friendly Dynamic Content 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 Sep 12th, 2006, 15:41
Junior Member
Join Date: Apr 2006
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
SE Friendly Dynamic Content

Hi

I have been testing out this script http://www.dynamicdrive.com/dynamici...ajaxrotate.htm for a site I am developing. I dont know much about programming, but got it to work for my site.

The thing is the content from the external file that it loads does not get displayed within the source code, so search engines will not be able to see this.

Is there a work around for this, or can someone point me in the right direction to what I am trying to achieve

thanks
Reply With Quote

  #2 (permalink)  
Old Sep 12th, 2006, 16:25
spinal007's Avatar
Moderator
Join Date: Mar 2004
Location: Good Ol'London
Age: 22
Posts: 1,612
Blog Entries: 1
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via ICQ to spinal007 Send a message via MSN to spinal007 Send a message via Yahoo to spinal007 Send a message via Skype™ to spinal007
Re: SE Friendly Dynamic Content

Use a server-side language to achieve the same effect.
How you do it will depend on the language you can use:
ASP (VBScript), ASP (JScript), PHP, CFM, etc...
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
Reply With Quote
  #3 (permalink)  
Old Sep 12th, 2006, 18:41
Junior Member
Join Date: Apr 2006
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Re: SE Friendly Dynamic Content

Thanks for the reply, I would like to use .php, but like I said I dont really know to much about it, can you supply me with any info or links?

thanks
Reply With Quote
  #4 (permalink)  
Old Sep 12th, 2006, 18:58
spinal007's Avatar
Moderator
Join Date: Mar 2004
Location: Good Ol'London
Age: 22
Posts: 1,612
Blog Entries: 1
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via ICQ to spinal007 Send a message via MSN to spinal007 Send a message via Yahoo to spinal007 Send a message via Skype™ to spinal007
Re: SE Friendly Dynamic Content

I don't program in php either, I really don't know much...
but here's a start:
http://www.w3schools.com/php/default.asp
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
Reply With Quote
  #5 (permalink)  
Old Sep 12th, 2006, 22:09
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to ukgeoff
Re: SE Friendly Dynamic Content

The process of using the script seems pretty straight forward.

Have you followed the instructions to the letter? Particularly the bit about the location of the files to be included.

Can you supply some basic tech specs for your client-sever set-up?
Reply With Quote
  #6 (permalink)  
Old Sep 13th, 2006, 09:15
Junior Member
Join Date: Apr 2006
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Re: SE Friendly Dynamic Content

Hi

Like I said I have got it to work, but was wondering is there alternative ways of what I am trying to achieve that will make the dynamic content visible to Search Engines, if you look a the example I gave and view the source code you will not see the text for the dynamic bit.

Any ideas guys?
Reply With Quote
  #7 (permalink)  
Old Sep 13th, 2006, 09:16
Junior Member
Join Date: Apr 2006
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Re: SE Friendly Dynamic Content

all I know is that it can host php, if you need anymore info please let me know
Reply With Quote
  #8 (permalink)  
Old Sep 13th, 2006, 09:32
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to ukgeoff
Re: SE Friendly Dynamic Content

You could write your dynamic text into a number of files with an extension of say .inc or you could store the text as records in a database.

Use php's rand() function to pick a file or database record and then include that text in the appropriate place in your page code.
Reply With Quote
  #9 (permalink)  
Old Sep 13th, 2006, 11:45
Junior Member
Join Date: Apr 2006
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Re: SE Friendly Dynamic Content

Thanks for the reply, I will need the blocks of text to change daily, I am a newbie to PHP so any help in the right direction would be so helpful!
Reply With Quote
  #10 (permalink)  
Old Sep 13th, 2006, 12:31
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to ukgeoff
Re: SE Friendly Dynamic Content

How many blocks of text are there going to be?

Where does this text originate from?

Is the nature of the text such that it has a 'shelf-life'?

Do you want the text to be chosen on a daily basis, ie., that day's text?

Answering questions like these is going to influence how you go about things.
Reply With Quote
  #11 (permalink)  
Old Sep 13th, 2006, 13:00
Junior Member
Join Date: Apr 2006
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Re: SE Friendly Dynamic Content

okay, thanks ukgeoff, this is what I need http://www.designholidays.co.uk/page...frica/preview/ the 3 horiz rows opposite feature highlight need to rotate on a daily basis.

There is no shelf life

The text will be getting pulled from the site itself that I supply, so no need for external docs.

Does that help?
Reply With Quote
  #12 (permalink)  
Old Sep 13th, 2006, 16:31
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to ukgeoff
Re: SE Friendly Dynamic Content

A few observations first:

You need to look at your layout as the three rows to which you refer do not resolve properly in Firefox and Opera so I'm guessing other browsers (not IE) will have a similar problem.

You have two empty <label> tags.

I would be inclined to set up a database that held the short text, either a link to the thumbnail or the thumbnail itself and a link to the full page.

You then have a div that is going to contain your three pieces and within that, you place a call to a php function which will generate the content.

That function will need to:
  • examine the database to find how many records there are
  • run the rand(1, maxrecords) function three times
  • keep a record of the record id so as to generate three different numbers
  • extract each of the record details in turn and build each section, probably as a div in its own right
  • return the built code to the containing div
How does that sound?
Reply With Quote
  #13 (permalink)  
Old Sep 14th, 2006, 08:49
Junior Member
Join Date: Apr 2006
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Re: SE Friendly Dynamic Content

Hi ukgeoff, yeah I knwo about the layout probs in FF, I will fix that.

What you have suggested sounds like what I need, but at the same time what you have mentioned is way over my level of understanding, any example you could offer would really help me to learn.

thanks again
Reply With Quote
  #14 (permalink)  
Old Sep 14th, 2006, 09:08
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: SE Friendly Dynamic Content

When I first started learning PHP, I turned to http://phpfreaks.com/

They've got a number of tutorials and an extremely active forum.
Reply With Quote
  #15 (permalink)  
Old Sep 14th, 2006, 09:37
Junior Member
Join Date: Apr 2006
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Re: SE Friendly Dynamic Content

Thanks I will give it a try
Reply With Quote
Reply

Tags
friendly, dynamic, content

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
Creating Dynamic Content deoxymonohydroxinate Starting Out 1 Feb 16th, 2008 18:23
Problems making the content area have a dynamic height blizeH Web Page Design 41 Aug 13th, 2007 01:19
Floating Dynamic Content Xyis Web Page Design 2 Jul 19th, 2007 13:27
Dynamic flv player with auto resize based on content waterox Flash & Multimedia Forum 1 Jun 28th, 2007 14:25
How to make an element display above a dynamic content? wood_flower Web Page Design 4 Aug 3rd, 2005 03:42


All times are GMT. The time now is 11:07.


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