[thelist] Link to cause POST request
Dave.Phillips at alltel.com
Dave.Phillips at alltel.com
Fri Jul 29 08:06:41 CDT 2005
<form name="thisform" action="whatever" method="post">
... your form elements ...
</form>
<a href="javascript:;" onclick="thisform.submit();">Submit Form</a>
The HREF doesn't need to be inside the form, but it can be anywhere on the page.
Dave
-----Original Message-----
From: thelist-bounces at lists.evolt.org
[mailto:thelist-bounces at lists.evolt.org]On Behalf Of klute
Sent: Friday, July 29, 2005 8:49 AM
To: thelist at lists.evolt.org
Subject: [thelist] Link to cause POST request
Hello All,
Is it possible to have a form whose submit is invoked
by pressing on a link? I know I could <input
type="image" name="submit"... and convert the link
into image to achieve this result but was looking for
a cleaner solution that does not involves images or
submit buttons to generate a POST request. Perhaps
this can be done with JavaScript?
Thanks a lot for your help,
James
____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs
--
* * Please support the community that supports you. * *
http://evolt.org/help_support_evolt/
For unsubscribe and other options, including the Tip Harvester
and archives of thelist go to: http://lists.evolt.org
Workers of the Web, evolt !
******************************************************************************************
The information contained in this message, including attachments, may contain
privileged or confidential information that is intended to be delivered only to the
person identified above. If you are not the intended recipient, or the person
responsible for delivering this message to the intended recipient, ALLTEL requests
that you immediately notify the sender and asks that you do not read the message or its
attachments, and that you delete them without copying or sending them to anyone else.
More information about the thelist
mailing list