|
Posted by Trammel on September 10, 2006, 9:45 pm
Please log in for more thread options
> > > Hi, Im just about to start developing a new website for personal /
> friend
> > > use that may be accessed by other people all over the web. I was
> sitting
> > > thinking through designs for the pages, etc when I came across a
> thought....
> > >
> > > ...why show the visitor loads of junk just because Im using A-href
type
> > > links?
> > >
> > > Is there a way to create a text-link that will request a page using
POST
> > > instead of GET?
> > >
> > > Maybe from within a form or using CSS to modify the behavior of links?
> >
> > It's do-able, somewhat unreliably, with Javascript. *However*, there
> > are better ways to do this sort of thing (especially since
> > POST-retrieved pages can't be bookmarked, can't be retrieved by search
> > engines, generate browser warnings on reload, and have other
> > undesirable properties for things that you actually want to GET)
> >
> > What you're really asking is: Can I have neater looking URLs for GET?
> > The answer is yes - either by modifying the web pages a bit to take
> > better URLs, or by using mod_rewrite to convert between a nice and an
> > ugly form [1].
> >
> > Can you give a bit more details about the page, and about the sort of
> > URLs you've currently got? Best of all, if development's far enough
> > ahead, can you give us a URL for it? If not, what about a URL for
> > something similar?
> >
> [snip]
>
> What I was after is preciesly some of the "down sides" that you listed.
>
> I was thinking of a PHP based index page that when bookmarked anywhere
would
> hold no data and always return to "home" by default. It would also never
> change the address from http://www.mysite.com/ in the address section of
the
> browser by using posts for page requests instead of gets.
>
> Currently the site design loads pages by a GET like: /index.php?p=blah
> This leaves the address bar reading:
http://www.mysite.com/index.php?p=blah
>
> I dont care if the bookmarked site/page always returns to "home" by
default
> as this would actually be best seeing as the updates & news are displayed
> there.
>
> I dont want to use frames, iframes or flash, etc to stop the address bar
> changing though as I wanted something that will be useable in almost all
(if
> not all) browsers...
> ...any ideas?
...without using Javascript (as it could be turned off)...
...and without using frames as you would still see the parameters in status
bar.
|