Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

The title of my question seems simple but here is an example of what I want to do:

http://www.mayoclinic.com/health/infant-jaundice/DS00107

What happens on that page is whenever you click on a link to go a section (e.g. "Symptoms") in the article on "Infant Jaundice", it provides a URL parameter like this:

http://www.mayoclinic.com/health/infant-jaundice/DS00107/DSECTION=symptoms

As the DESCTION parameter changes, you get different content on the same page DS00107. The content changes as well as <meta keywords>.

Can someone please tell me how this is achieved? I was thinking it was an if/else situation programmed into the page itself to display different properties depending on the URL parameter.

Any help or suggestions are very much appreciated and my thanks to you for reading my question.

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

It seems that the page is using a server-side scripting language, like PHP or ASP.Net to achieve that.

And a Data Base connection to get the diferent content for each section.

As you say, the page display diferent content depending on the URL parameter, but is not he page itself who has the content.

This is what happens:

  1. Client change the section and sends the request to the server (with URL parameters)
  2. The Server look for the URL parameters given.
  3. The Server ask the database for the content that match with the params.
  4. The Server build the page with the content from the DB.
  5. The Server return the generated page to the client.
  6. The Client see an HTML page with the new content.

You can look at this answer in Stackoverflow to get a better idea of the diferences between client and side scripting.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.