473,734 Members | 2,798 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Text-links using POST ?

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?

(Please reply to group only - email invalid)
Sep 8 '06 #1
10 2211

Trammel wrote:
...why show the visitor loads of junk just because Im using A-href type
links?
Why indeed. If you don't want junk, don't include junk

Switching to POST instead of GET sounds like a pointless idea. If GET
really was this broken, then don't you think we'd all stop using it,
then fix it ?

Sep 8 '06 #2
"Trammel" <Me@Server.comw rites:
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?

[1] For example:
RewriteRule ^([a-zA-Z0-9\ -]+)/([0-9]+)/.* /?category=$1&ar ticle=$2 [PT]
rewrites a requested URL of the form
/articles/101/writing_HTML
to a server-processed URL of
/?category=artic les&article=101

--
Chris
Sep 8 '06 #3
Trammel wrote:
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?
Presumably because that "junk" is information needed to access the page, and
is thus needed when bookmarking, or emailing links, etc.

Perhaps you need to consider if you need to put all that data in the URL in
the first place?
Is there a way to create a text-link that will request a page using POST
instead of GET?
No (discounting JavaScript since an anchor that just fires off some
JavaScript isn't really a link).

--
David Dorward <http://blog.dorward.me .uk/ <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Sep 8 '06 #4
"Chris Morris" <c.********@dur ham.ac.ukwrote in message
news:87******** ****@dinopsis.d ur.ac.uk...
"Trammel" <Me@Server.comw rites:
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=bla h
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?
Sep 11 '06 #5
"Trammel" <Me@Server.comw rote in message
news:MW******** **********@fe1. news.blueyonder .co.uk...
"Chris Morris" <c.********@dur ham.ac.ukwrote in message
news:87******** ****@dinopsis.d ur.ac.uk...
"Trammel" <Me@Server.comw rites:
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=bla h
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.
Sep 11 '06 #6
Trammel <Me@Server.comw rote:
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
FWIW, when I bookmark something, and the bookmark doesn't take me back to
whatever it was that I bookmarked, then I delete the bookmark. And I no
longer link to (or otherwise refer others to) whatever the resource was.

See also http://www.useit.com/alertbox/20020303.html
--
Darin McGrew, mc****@stanford alumni.org, http://www.rahul.net/mcgrew/
Web Design Group, da***@htmlhelp. com, http://www.HTMLHelp.com/

"When strong encryption is outlawed, only outlaws jvyy hfr fgebat rapelcgvba."
Sep 11 '06 #7
"Darin McGrew" <mc****@stanfor dalumni.orgwrot e in message
news:ee******** **@blue.rahul.n et...
Trammel <Me@Server.comw rote:
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
>
FWIW, when I bookmark something, and the bookmark doesn't take me back to
whatever it was that I bookmarked, then I delete the bookmark. And I no
longer link to (or otherwise refer others to) whatever the resource was.

See also http://www.useit.com/alertbox/20020303.html
Thank you for your views (and everyone elses views) on what makes a good
website. They are appreciated and I will keep them in mind if/when I
develop a website that needs to be search-engine friendly and allow "random"
users to surf it.

The information I am after is wether what I asked is possible or not... and
if so, how it could be done. (Not if its good practice or acceptable by
others to do so) ...consider it a logic problem if you will ;)

The requirements:
* Address bar never changes from: http://www.mysite.com/
* No use of Flash, Javascript or others that may be turned off
* No using frames, etc as the "link" can be viewed in status bar when
hovered.
* Use of POST would be beneficial & may be the only method... but can POST
be used and still look like a text link?

There are no "public" pages that will be viewable to a search-engine, the
site should never be indexed by them but the odd rouge spider might not
check the robots file if someone links the website... and index the one page
it has access to... (a page requesting a username and password... with no
logos or text saying what the website is for).

The website does not allow direct access to pages using bookmarks as it
contains private information requiring you to sign-in each time you visit
the site (no cookies are used either incase they are off).
Sep 11 '06 #8
"Trammel" <Me@Server.comw rote in message
news:rn******** **********@fe1. news.blueyonder .co.uk...
"Darin McGrew" <mc****@stanfor dalumni.orgwrot e in message
news:ee******** **@blue.rahul.n et...
Trammel <Me@Server.comw rote:
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

FWIW, when I bookmark something, and the bookmark doesn't take me back
to
whatever it was that I bookmarked, then I delete the bookmark. And I no
longer link to (or otherwise refer others to) whatever the resource was.

See also http://www.useit.com/alertbox/20020303.html

Thank you for your views (and everyone elses views) on what makes a good
website. They are appreciated and I will keep them in mind if/when I
develop a website that needs to be search-engine friendly and allow
"random"
users to surf it.

The information I am after is wether what I asked is possible or not...
and
if so, how it could be done. (Not if its good practice or acceptable by
others to do so) ...consider it a logic problem if you will ;)

The requirements:
* Address bar never changes from: http://www.mysite.com/
* No use of Flash, Javascript or others that may be turned off
* No using frames, etc as the "link" can be viewed in status bar when
hovered.
* Use of POST would be beneficial & may be the only method... but can POST
be used and still look like a text link?

There are no "public" pages that will be viewable to a search-engine, the
site should never be indexed by them but the odd rouge spider might not
check the robots file if someone links the website... and index the one
page
it has access to... (a page requesting a username and password... with no
logos or text saying what the website is for).

The website does not allow direct access to pages using bookmarks as it
contains private information requiring you to sign-in each time you visit
the site (no cookies are used either incase they are off).
Im guessing by the lack of replies that this has everyone else stumped too?
I tried to think of a way to do it but couldnt think of one either :-/
Sep 13 '06 #9
Trammel <Me@Server.comw rote:
>The requirements:
* Address bar never changes from: http://www.mysite.com/
* No use of Flash, Javascript or others that may be turned off
* No using frames, etc as the "link" can be viewed in status bar when
hovered.
* Use of POST would be beneficial & may be the only method... but can POST
be used and still look like a text link?
Trammel <Me@Server.comw rote:
Im guessing by the lack of replies that this has everyone else stumped too?
I tried to think of a way to do it but couldnt think of one either :-/
You've painted yourself into a corner. You can't have everything you want:
the web doesn't work that way. So where do you want to compromise?

If you give up on using normal links, then you can use form submissions and
METHOD="post" for your navigation. Your site will be opaque to search
engines, links, etc., but you don't seem to care. You might even be able to
use CSS to style the submit buttons to look like links in some browsers.
ciwa.stylesheet s is right next door.

If you give up on keeping the URL static, then you can use normal links.

If you give up on accessibility, then you can use links that trigger
JavaScript to send requests via METHOD="post". Of course, your site
navigation won't work when JavaScript is disabled/unavailable.
--
Darin McGrew, mc****@stanford alumni.org, http://www.rahul.net/mcgrew/
Web Design Group, da***@htmlhelp. com, http://www.HTMLHelp.com/

"I used to have a handle on life, but it broke."
Sep 13 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2888
by: Jürgen Holly | last post by:
Hi! I have the following xml-node: <docu> <p>Sample: <b>bold</b></p> <p>and text in <i>italic</i></p> </docu> I need to create a text-file, so I set the output-mode to text.
2
3134
by: Martin | last post by:
Hallo, can you help me writing a generic xslt transformation (useable with xsql from oracle)? The problem is how to get the escaping characters .... === INPUT-File in.xml <?xml version = '1.0'?> <person><who>scott</who></person>
2
2293
by: Jiri Palecek | last post by:
I have a question on web authoring (probably HTML+CSS). Is it somehow possible to put two words above each other inside a paragraph so the result would be valid and render at least in Mozilla? I mean this: text text text text text text text text text text text text text text text text text text text text text text text text | is | text text text txt | | text text text text ...
8
2639
by: Mikey | last post by:
I have an XML document as follows: <Menu> <Group> <Item Text="About Us" AccessRoles="All"> <Group> <Item Text="Option 1" AccessRoles="All" /> <Item Text="Option 2" AccessRoles="All" /> <Item Text="Option 3" AccessRoles="All" /> </Group>
3
2607
by: jweinberg1975 | last post by:
I would like for users to be able to select from a small number of options that come from a little drop down menu which then closes. .. http://www.geocities.com/jweinberg1975/dropdown_on_text00.html .. In order to see the behavior you should "mouseover" the white-on-black text segment that says "omnis dolor repellend" .. the thing is that I don't want for the whole space in the paragraph to be empty. I just need for the little menu to...
3
2176
by: bbepristis | last post by:
Hey all I have this code that reads from one text file writes to another unless im on a certian line then it writes the new data however it only seems to do about 40 lines then quits and I cant figure out why any help would be much apprechiated 1. Dim line_num As Integer 2. Dim filename2 As String 3.
5
2725
by: brendanmcdonagh | last post by:
Hi, I have been learning VB now for about a week and thought I was doing ok. I have already done a calculation form (not as big as this) . I have volunteered myself to help a friend input her hours per day into a form, start time, end time and lunch time. Then the form will calculate the amount of hours she has done for her. Sending results to access is not an issue yet! When I have entered the below code and tested it, it let's me input...
10
3218
by: bluemountain | last post by:
Hi there, Iam new to python forms and programming too I had a text file where i need to extract few words of data from the header(which is of 3 lines) and search for the keyword TEXT1, TEXT2, TEXT3in entire file(file consisting of 150 lines) that is related to a particular id and get the sum of the, WRITES of TEXT1, TEXT2, TEXT3 ex: input file will be as below Windows 2000 text text text text text text text
2
2117
by: dpw.asdf | last post by:
I have been searching all over for a solution to this. I am new to Python, so I'm a little lost. Any pointers would be a great help. I have a couple hundred emails that contain data I would like to incorporate into a database or CSV file. I want to search the email for specific text. The emails basically look like this:
1
19816
DebadattaMishra
by: DebadattaMishra | last post by:
Introduction In case of rich applications, you must have observed that a text field behaves like a dynamic combo box. When the user enters some characters in the text field, a popup will come up with a list of values as suggestions to the user. This feature is called auto completion. In case of Eclipse editor, you must have seen while writing java code, if the developers presses "Ctrl+Space" a dynamic list box come up with multiple...
0
8776
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9310
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9236
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9182
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6735
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4809
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2724
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2180
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.