|
-
Nov 5th, 2000, 07:33 PM
#1
Thread Starter
Hyperactive Member
Hi,
I'm using VBScript. I've got a bunch of hyperlinks and I want to pass all the info in the form whenever I click one. I don't want to list all the available info on the page seperately. I want my hyperlink to do what Submit does. How do I make this happen? I'm using VBScript.
-
Nov 9th, 2000, 12:35 PM
#2
One solution is to give your form a name and submit it with JavaScript when the link is clicked like so:
<FORM NAME="frmWhatever" ACTION="whatever.asp" METHOD="POST">
<INPUT NAME="blah">
<!-- Etc, etc... -->
<P><A HREF="doesntmatter.htm" onClick="frmWhatever.submit();return false;">Link that submits</A></P>
</FORM>
The "return false;" part prevents the link from executing...that's why the URL for the link doesn't matter.
This JavaScript should work with IE or NS.
Does this help?
Paul
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|