PDA

View Full Version : Question: Something up ...


Sajuuk
August 22nd, 2009, 11:40 AM
Now I don't to sound as if I complain alot, but when you click a link to a post you've made, why does it make two of the same thing in the address bar?

Like if I go to this post I made (http://www.pokecommunity.com/showthread.php?p=5017937#post5017937), it shows my post. But the software doesn't need to append #post5017937 to the end of the address since this (http://www.pokecommunity.com/showthread.php?p=5017937) does the very same thing.

What gives?

X-626
August 22nd, 2009, 11:58 AM
It does that for browsers that don't support JavaScript. In browsers with it disabled (or don't support it), the second link wouldn't take them to the post. The forum has a lot of features that require JavaScript, so there has to be a way for those without it to use the forum properly.

Sajuuk
August 22nd, 2009, 12:12 PM
But there isn't a browser that don't support Java, 'cept Safari :D

I'm using Firefox. Which does support Java. Has done for a while.

Gulpin
August 22nd, 2009, 12:16 PM
Yes, but some people actually do have safari. And why does it even matter in the first place?

X-626
August 22nd, 2009, 12:22 PM
But there isn't a browser that don't support Java, 'cept Safari :D

I'm using Firefox. Which does support Java. Has done for a while.JavaScript is NOT Java. Also, some people choose to disable JavaScript. I have an add-on called NoScript that disabled it. You have to manually allow each site to use it. I have it enabled for PC, but that doesn't mean everyone does. Besides, not everyone uses a well-known browser. Some of the others may not support it. You can't rely on everyone having the most up-to-date software.

Edit: Also, Safari does support it. Not sure where you got that from.

Ineffable~
August 22nd, 2009, 12:27 PM
I use Safari. Just throwin' it out there.

Ausaudriel
August 22nd, 2009, 12:33 PM
Now I don't to sound as if I complain alot, but when you click a link to a post you've made, why does it make two of the same thing in the address bar?

Like if I go to this post I made (http://www.pokecommunity.com/showthread.php?p=5017937#post5017937), it shows my post. But the software doesn't need to append #post5017937 to the end of the address since this (http://www.pokecommunity.com/showthread.php?p=5017937) does the very same thing.

What gives?
Your second link only takes you to the thread and page that contains the post. The #post5017937 is called an anchor, every single post on PC has one. It's what makes you automatically scroll down to your post (or in some cases, the newest post that you haven't read).

Without the anchor you wouldn't know exactly what post on that page you were trying to view. It just so happens that the example you unfortunately used here is the first post in the thread, so loading the link takes you to it regardless.