Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics 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 October 2nd, 2003, 04:27 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , USA.
Posts: 141
Thanks: 0
Thanked 0 Times in 0 Posts
Default SELECT Doubleclick

I have a SELECT tag in my form. Is there a way to make it so when a user double clicks an item in the list (It is set as a listbox) that it would trigger the submit button?

Chris
__________________
Chris
 
Old October 3rd, 2003, 04:11 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , United Kingdom.
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

The SELECT element supports the ondblclick event, so a bit of js in that event handler can submit the form for you, e.g.
<SELECT ... ondblclick="document.formName.submit();"> should do it for you.

hth
Phil




Similar Threads
Thread Thread Starter Forum Replies Last Post
Select row in GridView WITHOUT using Select button rao965 ASP.NET 2.0 Professional 1 February 15th, 2008 10:44 AM
Fill select box and select recordset value markd Classic ASP Databases 1 February 20th, 2006 06:41 PM
Cells doubleclick mushu Excel VBA 6 September 29th, 2004 02:52 AM
Open Form from MSHFlexGrid DoubleClick neo_jakey Pro VB Databases 1 September 8th, 2004 05:18 AM
Open Form from MSHFlexGrid DoubleClick neo_jakey Pro VB 6 2 September 7th, 2004 10:17 AM





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