public inbox for [email protected]  
help / color / mirror / Atom feed
From: Kevin Hunter <[email protected]>
To: Tom Lane <[email protected]>
Cc: Alvaro Herrera <[email protected]>
Cc: Bruce Momjian <[email protected]>
Cc: Postgres WWW List <[email protected]>
Subject: Re: Problem with archives search
Date: Mon, 14 Jul 2008 16:20:33 -0400
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
	<[email protected]>
	<[email protected]>
	<[email protected]>

At 3:16p -0400 on Mon, 14 Jul 2008, Tom Lane wrote:
> I'd like to be able to paste a message ID into a form on my home page
> and end up at the correct URL, but the only way I know to do that
> involves <form method="get"> which insists on sticking "?fieldname="
> in there somewhere.  Is there another simple way, or do we have an
> alternate portal that handles URLs of that format?

Yeah, all variables in an HTML form are put after a ? in a GET request.
 You'll either have to write yourself something server side, or get some
Javascript to do it for you.

[... time passes ...]

It ain't pretty and it ain't cross-browser compatible, but it was quick.
 Tested in Ubuntu, FF3.  I tried to annotate it so you can personalize
it, whatevs.

Enjoy,

Kevin


Attachments:

  [text/html] load_message_id.html (1.1K, 2-load_message_id.html)
  download | inline:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta name='robots' content='noindex, nofollow' />
	<meta http-equiv='content-type' content='text/html; charset=UTF-8' />
	<title>Message-ID redirector for Tom Lane</title>
</head>
<body>
<!-- import parts for messsage loading. -->
<script type='text/javascript'>
//  Define function here for onclick event use below
function handle_message_id ( form ) {
	msg_id = form.message_id.value;
	msg_id = 'http://archives.postgresql.org/message-id/' + msg_id;
	document.location = msg_id;          // Does the actual page load
}
</script>
<div>
	<form method='get' action='' onsubmit='return false;'><!-- return false; so as not to use form for redirect.  Don't want those pesky get variables (?message_id=...) -->
	<p>
		<input type='text' name='message_id' value=''/>
		<button onclick='handle_message_id(this.form);'>Go to Message</button>
	</p>
	</form>
</div>
<!-- end: import parts for messsage loading. -->
</body>
</html>

view thread (13+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected], [email protected]
  Subject: Re: Problem with archives search
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox