Page 1 of 1
Domain Address
Posted: Fri May 12, 2006 2:18 pm
by alexislalas
hi,
a guy at work asked me if theres a way to just show the main address and hide the rest of the directorys and files in the address bar of the browsers.
something like:
http://www.mypage.com/hello.php but just show
http://www.mypage.com
can that be done?
thanks
Posted: Fri May 12, 2006 2:29 pm
by Burrito
without using any additional parameters...short answer is no.
I suppose you could use sessions and determine which page needs to be displayed then redirect back to the root and put the page in the session up...
you could also use frames...but yuck!
Posted: Fri May 12, 2006 2:31 pm
by alex.barylski
Or you could use AJAX...
Posted: Fri May 12, 2006 2:33 pm
by Burrito
Hockey wrote:Or you could use AJAX...
didn't think of that and I'm not sure why

...
I didn't eat my wheaties this morning...that's actually probably your best solution.
Posted: Fri May 12, 2006 2:44 pm
by timvw
Actually, the only one who has control over what is displayed in the 'address bar' is *me*.
And no, you (or any webmaster) will ever take that away from *me*.
Here is a bit of motivation why it's 'bad thing (tm)'
http://en.wikipedia.org/wiki/URL
http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html (Idempotent Methods)
Posted: Fri May 12, 2006 2:59 pm
by alex.barylski
Burrito wrote:Hockey wrote:Or you could use AJAX...
didn't think of that and I'm not sure why

...
I didn't eat my wheaties this morning...that's actually probably your best solution.
It happens...
I do that daily...but thats why I visit this place regularly...
Often you know best solutions...but fail to remember (for whatever reason)...until someone here kicks you in the butt and reminds you
Cheers

Posted: Fri May 12, 2006 3:10 pm
by alvinphp
You could use frames and inline frames.