9three Posted November 2, 2009 Share Posted November 2, 2009 Hey, I'm trying to implement hashing like facebook. But I'm having a hard time understanding because I can't really find any useful examples/tutorials online. Facebook href is the following: Home: http://www.facebook.com/home.php?ref=home Profile: http://www.facebook.com/profile.php?id=000000&ref=profile When you click on the profile the hashing turns into: http://www.facebook.com/home.php?#/profile.php?id=000000&ref=profile Does anyone know how to implement this? I tried doing: <a href="#about">About Me</a> But it creates an anchor, and it's not what I'm really looking for. Quote Link to comment Share on other sites More sharing options...
nadeemshafi9 Posted November 2, 2009 Share Posted November 2, 2009 what do you mean by hashing , hashing means when you hashify or encrypt url variables. Quote Link to comment Share on other sites More sharing options...
9three Posted November 2, 2009 Author Share Posted November 2, 2009 Anything after the pound sign (#). window.location.hash Quote Link to comment Share on other sites More sharing options...
nadeemshafi9 Posted November 2, 2009 Share Posted November 2, 2009 Anything after the pound sign (#). window.location.hash theirs no need for that, i mean if you do use it, its built into JavaScript, but you will have to parse it into php using regext and all variables after it, they may conflict with the rest of php's get vars. i mean the only benefit i can see in this is to separate variables destined for java script fronted from php variables in the url, i mean for an ajax interface it may be usfull. but arnt the variables after a hash related to anchors ? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.