Jump to content
xisto Community
vipervoid

Url how do you make your URL static?

Recommended Posts

I think he means having the url never change even if you click links etc...This can be achieved a few ways. The easiest way is just to use frames, but many people (like me) find frames very "old fashioned" and just plain annoying. If you are good with javascript you could load all of the content dynamically with AJAX and never even have to change pages.

Share this post


Link to post
Share on other sites

I think he means having the url never change even if you click links etc...
This can be achieved a few ways. The easiest way is just to use frames, but many people (like me) find frames very "old fashioned" and just plain annoying. If you are good with javascript you could load all of the content dynamically with AJAX and never even have to change pages.


Just incase some people find javascript or AJAX quite difficult ( i know i did/am) , you can also achieve this through php.
It may require $_GET if its ok with you, but everything will come on one page :)

<?phpif ($_GET['tab'] =="home") {//put the content for the main home page}else if($_GET['tab'] == "join") {//put joining code here}//..etc//..etc?>

Hope that helps a little bit.

Share this post


Link to post
Share on other sites

Yes but that would still change the url, even though its one page unless you post the data you will still have a ?tab=home at the end. I think he wants the url to always stay the same. In my opinion thats a terrible idea. Some people (including me) want to know what page they are one, and frames just make a website SUPER annoying.

Share this post


Link to post
Share on other sites

I agree that this isn't a very smart thing to do. If you're looking for lots of traffic and quality visitors and all the things we want from our websites, including monetary gain... then you shouldn't do this. But if you don't care about any of that and you really want to do this (and I'm sure you have your reasons) then I would just go ahead and use frames. They may not be very appropriate in web design these days, but if you're going to be so "standards-non-compliant" with the url, then you might as well break a few more rules. Using frames would be pretty easy. Just make an index page with a frame and keep all the links' targets to that frame.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.