The text on the button is returned as the value if you assign the submit
buttons names.  Same name, test the value.  Different names, test
isDefined().

Make sense?

--Ben Doom

Schuster, Steven wrote:

> Ok, this is dumb but...
>
>
> Single-form...
>
>
> Two submit buttons....both go to the same page. How can I tell which submit
> button was pressed in JS. Is there some button is true state I can look for
> on submit types?
>
>
>
> Stephen E. Schuster
> PeopleSoft Administrator
> 2000 Ashland Drive
> Ashland, KY 41101
>
> Office Phone 606.920.7447
> Cell Phone 606.831.4590
>
>   _____  
>
> From: Dave Watts [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, January 14, 2004 1:57 PM
> To: CF-Talk
> Subject: RE: CFScript StructInsert or cfset. Which is faster?
>
>
>  > I have a collection of parameters that I keep in a struct.  
>  > Mostly out of a perceived feeling that this is tidier.  I use
>  > cfscript for this sort of thing for speed.  It occurs to me I
>  > should ask Those Who Know... would it be faster to just use
>  > plain variables?  Or a 2d array?An example is below.
>  >
>  > <cfscript>
>  > Parameters=StructNew();
>  > StructInsert(Parameters,"AllowMultiEdit","");
>  > StructInsert(Parameters,"AllowMultiAdd","");
>  > StructInsert(Parameters,"TotalCols",(ListLen(variables.Fields)+2);
>  > StructInsert(Parameters,"FooterColSpan",ParameterGroup.TotalCols+1);
>  > </cfscript>
>
> It makes no significant difference, and you should favor readability over
> speed in this case anyway.
>
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/ <http://www.figleaf.com/>
> voice: (202) 797-5496
> fax: (202) 797-5444
>   _____
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to