Actually, I think it's worse than I thought..

It looks like the values for *all* buttons are passed in IE, not just 
the single button clicked.

So, if you do this on the receiving end:

<cfif IsDefined("form.action1") AND #form.action1# NEQ "">
    <cfset gotoPAGE="action1">
</cfif>

<cfif IsDefined("form.action2") AND #form.action2# NEQ "">
    <cfset gotoPAGE="action2">
</cfif>

BOTH are true - even if you only clicked action1!

ARGH!!


Looking like it might be better to style a DIV with a link that uses 
javascript to submit the form, and passes a URL value at the same time 
to cover the various actions.


> hmm... ok according to:
> 
> http://blooberry.com/indexdot/html/tagpages/b/button.htm
> 
> there's no label attribute for a button.  my bad :\
> 
> what's weird is on that same page, under "browser peculiarities", it
> states that IE 4.0 would pass the innerText, whereas IE 5 passed the
> value in the "value" attribute if it exists.  Nothing on IE 6.  page
> might not have been updated in a while.
> 
> all i can think of offhand is some kludgy JS to populate some hidden
> form fields on the onclick event of the button.  It's not particularly
> clean...but would solve the browser compatibility issue.
> 
> On 12/20/06, Les Mizzell <[EMAIL PROTECTED]> wrote:
>> Charlie Griefer wrote:
>>> try it like so:
>>>
>>> <button name="sub1" type="submit" id="sub1" value="1" label="General
>>> Information" />
>> Not sure that's going to work because of needed HTML formatting of the
>> text. The text is sized with CSS and centered with CSS as well.
>> Like label="General<br>Information".
>>
>>
>> Just tried it, and
>> 1. the label text doesn't show up at all (maybe fixed with CSS)
>> 2. NO value is getting passed in IE now - Firefox sees "1"
>>
>> Sheesh...
>>
>>
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:264660
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to