Have you tried the <button> element? As far as I know that can be styled
pretty much how you want. I used it on this page:
http://www.searchandgo.com/weather/United-States/New-York-City/ - the "New
York City exchange rates" text on the left is a button.

I may have missed the point of your question, of course. It happens
regularly with me.

Chris



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Richard Ishida
Sent: 20 June 2007 15:52
To: wsg@webstandardsgroup.org
Subject: [WSG] Triggering POSTs with links?

I put together a box that expands to accommodate larger text in translation,
but I forgot that text on a submit button doesn't wrap :O 

Original:
http://www.w3.org/International/questions/qa-css-charset.en.php#endlinks
(see the box to the right)
First problematic translation:
http://www.w3.org/International/questions/qa-css-charset.fr.php#endlinks

I want the text "Send us a comment" to look like a link, but trigger a POST,
so I put the text in a submit button and styled it. Unfortunately the longer
translations won't wrap that way.

<form action="/International/2007/06/surveyform.php" method="post">
<p><input class="interaction" value="Send us a comment" type="submit"></p>
<input name="docname" value="/International/questions/qa-css-charset.en.php"
type="hidden">
<input name="referer"
value="http://www.w3.org/International/questions/qa-css-charset.fr.php";
type="hidden">
<input name="lang" value="en" type="hidden"> 
</form>

Does anyone know a better way to do this?  I was hoping to avoid using
JavaScript, if possible.

Cheers,
RI


============
Richard Ishida
Internationalization Lead
W3C (World Wide Web Consortium)
 
http://www.w3.org/People/Ishida/
http://www.w3.org/International/
http://people.w3.org/rishida/blog/
http://www.flickr.com/photos/ishida/
 



*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************




*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************

Reply via email to