PDA

View Full Version : What would you say is better?


James Jobs
03-26-2009, 11:36 PM
I have found two types of ways to change text on the same page. The first is done with php - /index.php?about. The other way is to do a #about.

What is better, why and how?

- James Jobs

Millenia
03-27-2009, 12:46 AM
Both are very different and it depends entirely on what you want to do. Can you provide more information on what you are trying to achieve?

It would also be better if you used a more informative title. See the posting guidelines. (http://www.codingforums.com/postguide.htm)

barkermn01
03-27-2009, 01:06 PM
I have found two types of ways to change text on the same page. The first is done with php - /index.php?about. The other way is to do a #about.

What is better, why and how?

- James Jobs

Well for starters both can be used by javascript but #about ant be used by php
now for a CMS use ?about its easyer for php as a CMS if you are wanting to change the page with javascript lot of work you use #about

but thats just the norm i use javascript on ?about= bla bla but javascript can not update the ?about only read it where as if you wanting to have dynamic pages and url targeting still working use #about

James Jobs
03-27-2009, 06:01 PM
I am doing a site and is a little media heavy and was thinking it would be easer that way?

Or should I just use html?

Millenia
03-27-2009, 06:28 PM
I am doing a site and is a little media heavy and was thinking it would be easer that way?

Or should I just use html?

Am I right, is #something only used to go to the certain point of a page where the id of 'something' is? If so, isn't that completely different to using index.php?something. Isn't that for displaying dynamic content? I'm just a bit confused about this, and I'm not sure what you want exactly.

James Jobs
03-27-2009, 06:38 PM
The Hash is the change to some different text.

I have examples:

The PHP way, http://matthiaskretschmann.com/

The # way or like it: http://www.theescapers.com/flux/index.html