1

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.

1 Answer 1

0

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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