Results 1 to 3 of 3
Jan 20, 2007, 14:35 #1
Using the Hash Value properly. js/php
I have a pretty neat system going on right now with the website I'm creating.
It seemed like a good idea at the time...
From what I have researched.. the server doesn't pick up the #hash value (this is obvious since when you click on a link that's linking to a spot in the page, it's the browser doing the work). That's okay, the thing I want anyway is for it to pick up on the very first request via well.. something. The first request is when the server does do something and may have a chance to do something with a hash value.
1. Can I manipulate the server into 'reading' this #hash value on the initial request and then put it through say.. php or mod_rewrite?
2. What about css.. this is another client end thing that could work, but I am completely lost when it comes to css and recognising hash values. Even if it just works for Firefox/MSIE/Opera.. well.. that's something as it's non-intrusive and ups the people that can access my site properly.
The site is here:
There is only two links:
Notice: On the first page load (set by a cookie that lasts a day)... it will display a light full-page flash animation that should last 3ish seconds. There is no sound in this animation.
Jan 20, 2007, 15:34 #2
- Join Date
- Dec 2006
- 0 Post(s)
- 0 Thread(s)
If people come not from tinderbox.ca they will have this info in referrer maybe you can check it and then rather replace url with hash by php to real page. But someone can block his referrer. It is very nice work there.
Jan 20, 2007, 15:59 #3
It's a nice thought of a quasi solution, something which I was testing with two links.
http://www.tinderbox.ca/redirect1.php#hash (gives you a link to redirect.php to click on).
http://www.tinderbox.ca/redirect.php is the straight link that just echo's the referrer in php.
When we combine that with a redirect, like you say. It means that on first visit and referred directly and on first visit (from msn, yahoo etc) it would display the warning.
This still leaves out linking from say.. gmail or a webpage if they do http://www.tinderbox.ca/#Contact . Which you know already I'm sure and I'm just rambling.
Wow.. 96%, what a guess...