Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 14th, 2006, 08:43 AM
Friend of Wrox
 
Join Date: May 2005
Location: , , Norway.
Posts: 189
Thanks: 0
Thanked 0 Times in 0 Posts
Default a-link submit

Hei!

How do I make an a-link post/get to the server when ASP-scripting?
Is JS the answer?
Mvh
grstad
__________________
Internet has become favorable with that tool...thank you Tim Berners-Lee!
 
Old December 14th, 2006, 04:45 PM
Friend of Wrox
Points: 6,664, Level: 34
Points: 6,664, Level: 34 Points: 6,664, Level: 34 Points: 6,664, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2004
Location: Sydney, NSW, Australia.
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

Yes, the following is very common however fails in Firefox:
<a href="javascript:formName.submit()">Submit</a>

You will find this works in Firefox, Opera and IE
<a href="javascript:document.forms['formName'].submit()">Submit</a>

FYI If you want to turn the cursor into a hand onHover use:
cursor:pointer;
in your class for your anchor tag


Wind is your friend
Matt
 
Old December 14th, 2006, 05:19 PM
Friend of Wrox
 
Join Date: May 2005
Location: , , Norway.
Posts: 189
Thanks: 0
Thanked 0 Times in 0 Posts
Default

...thank you, mat41!

Mvh
grstad




Similar Threads
Thread Thread Starter Forum Replies Last Post
Submit olisav ASP.NET 2.0 Basics 0 May 17th, 2007 02:32 PM
How to submit the different data on single submit pushpa Classic ASP Databases 1 January 24th, 2007 07:10 PM
Form Submit on Link qazi_nomi Javascript How-To 4 October 6th, 2004 11:40 PM
How can we submit a form without a submit butto phpsharma BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 4 October 20th, 2003 08:50 AM
submit kilika Javascript How-To 2 September 16th, 2003 05:43 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.